| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B5 11 部位升星自动购买拍品消耗信息 #tagGCEquipStarAutoBuyCostInfo
|
| | |
|
| | | class tagGCEquipStarAutoBuyCostInfo(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("ClassLV", c_ubyte), # 当前要升星的境界阶
|
| | | ("EquipPlace", c_ubyte), #当前要升星的装备位
|
| | | ("CurStar", c_ubyte), #当前星级
|
| | | ("CurRate", c_ubyte), #当前自动购买后的总概率,不满100则代表拍品库存不足
|
| | | ("AutoBuyCostMoney", c_ushort), #自动购买所需总消耗
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xB5
|
| | | self.SubCmd = 0x11
|
| | | return
|
| | |
|
| | | def ReadData(self, stringData, _pos=0, _len=0):
|
| | | self.Clear()
|
| | | memmove(addressof(self), stringData[_pos:], self.GetLength())
|
| | | return _pos + self.GetLength()
|
| | |
|
| | | def Clear(self):
|
| | | self.Cmd = 0xB5
|
| | | self.SubCmd = 0x11
|
| | | self.ClassLV = 0
|
| | | self.EquipPlace = 0
|
| | | self.CurStar = 0
|
| | | self.CurRate = 0
|
| | | self.AutoBuyCostMoney = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagGCEquipStarAutoBuyCostInfo)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// B5 11 部位升星自动购买拍品消耗信息 //tagGCEquipStarAutoBuyCostInfo:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | ClassLV:%d,
|
| | | EquipPlace:%d,
|
| | | CurStar:%d,
|
| | | CurRate:%d,
|
| | | AutoBuyCostMoney:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.ClassLV,
|
| | | self.EquipPlace,
|
| | | self.CurStar,
|
| | | self.CurRate,
|
| | | self.AutoBuyCostMoney
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagGCEquipStarAutoBuyCostInfo=tagGCEquipStarAutoBuyCostInfo()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGCEquipStarAutoBuyCostInfo.Cmd,m_NAtagGCEquipStarAutoBuyCostInfo.SubCmd))] = m_NAtagGCEquipStarAutoBuyCostInfo
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B5 05 拍卖行仙盟拍卖中的物品信息 #tagGCFamilyAuctionItemInfo
|
| | |
|
| | | class tagGCFamilyAuctionItem(Structure):
|