6250 【后端】【2.0】拍卖行开发单(新增修改关注拍品封包)
| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B5 18 拍卖行修改关注物品 #tagCGAttentionAuctionItemChange
|
| | |
|
| | | class tagCGAttentionAuctionItemChange(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("ItemID", c_int), |
| | | ("IsAttention", c_ubyte), #是否关注,取消关注发0
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xB5
|
| | | self.SubCmd = 0x18
|
| | | 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 = 0x18
|
| | | self.ItemID = 0
|
| | | self.IsAttention = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagCGAttentionAuctionItemChange)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// B5 18 拍卖行修改关注物品 //tagCGAttentionAuctionItemChange:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | ItemID:%d,
|
| | | IsAttention:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.ItemID,
|
| | | self.IsAttention
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagCGAttentionAuctionItemChange=tagCGAttentionAuctionItemChange()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCGAttentionAuctionItemChange.Cmd,m_NAtagCGAttentionAuctionItemChange.SubCmd))] = m_NAtagCGAttentionAuctionItemChange
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B5 03 交易所查询上架物品#tagCGPYQueryBourseItemOnSale
|
| | |
|
| | | class tagCGPYQueryBourseItemOnSale(Structure):
|
| | |
| | | ClassLV = 0 #(BYTE ClassLV)//过滤阶数,0为不限制
|
| | | SpecItemIDCount = 0 #(BYTE SpecItemIDCount)//指定物品ID个数
|
| | | SpecItemIDList = list() #(vector<DWORD> SpecItemIDList)//指定物品ID
|
| | | FromNum = 0 #(WORD FromNum)//查询起始数 (从1开始)
|
| | | FromItemGUID = "" #(char FromItemGUID[40])//从哪个物品开始查询
|
| | | QueryDir = 0 #(BYTE QueryDir)//查询方向,1-往后查,2-往前查
|
| | | QueryCount = 0 #(BYTE QueryCount)//查询个数,0为全部
|
| | | data = None
|
| | |
|
| | |
| | | for i in range(self.SpecItemIDCount):
|
| | | value,_pos=CommFunc.ReadDWORD(_lpData,_pos)
|
| | | self.SpecItemIDList.append(value)
|
| | | self.FromNum,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | self.FromItemGUID,_pos = CommFunc.ReadString(_lpData, _pos,40)
|
| | | self.QueryDir,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.QueryCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | return _pos
|
| | |
|
| | |
| | | self.ClassLV = 0
|
| | | self.SpecItemIDCount = 0
|
| | | self.SpecItemIDList = list()
|
| | | self.FromNum = 0
|
| | | self.FromItemGUID = ""
|
| | | self.QueryDir = 0
|
| | | self.QueryCount = 0
|
| | | return
|
| | |
|
| | |
| | | length += 1
|
| | | length += 1
|
| | | length += 4 * self.SpecItemIDCount
|
| | | length += 2
|
| | | length += 40
|
| | | length += 1
|
| | | length += 1
|
| | |
|
| | | return length
|
| | |
| | | data = CommFunc.WriteBYTE(data, self.SpecItemIDCount)
|
| | | for i in range(self.SpecItemIDCount):
|
| | | data = CommFunc.WriteDWORD(data, self.SpecItemIDList[i])
|
| | | data = CommFunc.WriteWORD(data, self.FromNum)
|
| | | data = CommFunc.WriteString(data, 40, self.FromItemGUID)
|
| | | data = CommFunc.WriteBYTE(data, self.QueryDir)
|
| | | data = CommFunc.WriteBYTE(data, self.QueryCount)
|
| | | return data
|
| | |
|
| | |
| | | ClassLV:%d,
|
| | | SpecItemIDCount:%d,
|
| | | SpecItemIDList:%s,
|
| | | FromNum:%d,
|
| | | FromItemGUID:%s,
|
| | | QueryDir:%d,
|
| | | QueryCount:%d
|
| | | '''\
|
| | | %(
|
| | |
| | | self.ClassLV,
|
| | | self.SpecItemIDCount,
|
| | | "...",
|
| | | self.FromNum,
|
| | | self.FromItemGUID,
|
| | | self.QueryDir,
|
| | | self.QueryCount
|
| | | )
|
| | | return DumpString
|
| | |
| | |
|
| | | m_NAtagCGQueryAuctionRecord=tagCGQueryAuctionRecord()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCGQueryAuctionRecord.Cmd,m_NAtagCGQueryAuctionRecord.SubCmd))] = m_NAtagCGQueryAuctionRecord
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B5 15 拍卖行查询仙盟拍卖中的拍品 #tagCGQueryFamilyAuctionItem
|
| | |
|
| | | class tagCGQueryFamilyAuctionItem(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xB5
|
| | | self.SubCmd = 0x15
|
| | | 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 = 0x15
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagCGQueryFamilyAuctionItem)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// B5 15 拍卖行查询仙盟拍卖中的拍品 //tagCGQueryFamilyAuctionItem:
|
| | | Cmd:%s,
|
| | | SubCmd:%s
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagCGQueryFamilyAuctionItem=tagCGQueryFamilyAuctionItem()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCGQueryFamilyAuctionItem.Cmd,m_NAtagCGQueryFamilyAuctionItem.SubCmd))] = m_NAtagCGQueryFamilyAuctionItem
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B5 11 拍卖行查询个人拍卖中的物品 #tagCGQueryPlayerAuctionItem
|
| | |
|
| | | class tagCGQueryPlayerAuctionItem(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ]
|
| | |
|
| | | 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
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagCGQueryPlayerAuctionItem)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// B5 11 拍卖行查询个人拍卖中的物品 //tagCGQueryPlayerAuctionItem:
|
| | | Cmd:%s,
|
| | | SubCmd:%s
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagCGQueryPlayerAuctionItem=tagCGQueryPlayerAuctionItem()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCGQueryPlayerAuctionItem.Cmd,m_NAtagCGQueryPlayerAuctionItem.SubCmd))] = m_NAtagCGQueryPlayerAuctionItem
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | |
| | | ClassLV = 0 #(BYTE ClassLV)//过滤阶数,0为不限制
|
| | | SpecItemIDCount = 0 #(BYTE SpecItemIDCount)//指定物品ID个数
|
| | | SpecItemIDList = list() #(vector<DWORD> SpecItemIDList)//指定物品ID
|
| | | FromNum = 0 #(WORD FromNum)//查询起始数 (从1开始)
|
| | | FromItemGUID = "" #(char FromItemGUID[40])//从哪个物品开始查询
|
| | | QueryDir = 0 #(BYTE QueryDir)//查询方向,1-往后查,2-往前查,3-定位查询
|
| | | QueryCount = 0 #(BYTE QueryCount)//查询个数,0为全部
|
| | | QueryTotalCount = 0 #(WORD QueryTotalCount)//查询条件实际总个数
|
| | | QueryRemainlCount = 0 #(WORD QueryRemainlCount)//查询条件对应查询方向剩余个数
|
| | | AuctionItemCount = 0 #(BYTE AuctionItemCount)//返回拍品数量
|
| | | AuctionItemList = list() #(vector<tagGCAuctionItem> AuctionItemList)//返回拍品列表
|
| | | data = None
|
| | |
| | | for i in range(self.SpecItemIDCount):
|
| | | value,_pos=CommFunc.ReadDWORD(_lpData,_pos)
|
| | | self.SpecItemIDList.append(value)
|
| | | self.FromNum,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | self.FromItemGUID,_pos = CommFunc.ReadString(_lpData, _pos,40)
|
| | | self.QueryDir,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.QueryCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.QueryTotalCount,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | self.QueryRemainlCount,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | self.AuctionItemCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.AuctionItemCount):
|
| | | temAuctionItemList = tagGCAuctionItem()
|
| | |
| | | self.ClassLV = 0
|
| | | self.SpecItemIDCount = 0
|
| | | self.SpecItemIDList = list()
|
| | | self.FromNum = 0
|
| | | self.FromItemGUID = ""
|
| | | self.QueryDir = 0
|
| | | self.QueryCount = 0
|
| | | self.QueryTotalCount = 0
|
| | | self.QueryRemainlCount = 0
|
| | | self.AuctionItemCount = 0
|
| | | self.AuctionItemList = list()
|
| | | return
|
| | |
| | | length += 1
|
| | | length += 1
|
| | | length += 4 * self.SpecItemIDCount
|
| | | length += 2
|
| | | length += 40
|
| | | length += 1
|
| | | length += 1
|
| | | length += 2
|
| | | length += 1
|
| | |
| | | data = CommFunc.WriteBYTE(data, self.SpecItemIDCount)
|
| | | for i in range(self.SpecItemIDCount):
|
| | | data = CommFunc.WriteDWORD(data, self.SpecItemIDList[i])
|
| | | data = CommFunc.WriteWORD(data, self.FromNum)
|
| | | data = CommFunc.WriteString(data, 40, self.FromItemGUID)
|
| | | data = CommFunc.WriteBYTE(data, self.QueryDir)
|
| | | data = CommFunc.WriteBYTE(data, self.QueryCount)
|
| | | data = CommFunc.WriteWORD(data, self.QueryTotalCount)
|
| | | data = CommFunc.WriteWORD(data, self.QueryRemainlCount)
|
| | | data = CommFunc.WriteBYTE(data, self.AuctionItemCount)
|
| | | for i in range(self.AuctionItemCount):
|
| | | data = CommFunc.WriteString(data, self.AuctionItemList[i].GetLength(), self.AuctionItemList[i].GetBuffer())
|
| | |
| | | ClassLV:%d,
|
| | | SpecItemIDCount:%d,
|
| | | SpecItemIDList:%s,
|
| | | FromNum:%d,
|
| | | FromItemGUID:%s,
|
| | | QueryDir:%d,
|
| | | QueryCount:%d,
|
| | | QueryTotalCount:%d,
|
| | | QueryRemainlCount:%d,
|
| | | AuctionItemCount:%d,
|
| | | AuctionItemList:%s
|
| | | '''\
|
| | |
| | | self.ClassLV,
|
| | | self.SpecItemIDCount,
|
| | | "...",
|
| | | self.FromNum,
|
| | | self.FromItemGUID,
|
| | | self.QueryDir,
|
| | | self.QueryCount,
|
| | | self.QueryTotalCount,
|
| | | self.QueryRemainlCount,
|
| | | self.AuctionItemCount,
|
| | | "..."
|
| | | )
|
| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B5 18 拍卖行修改关注物品 #tagCGAttentionAuctionItemChange
|
| | |
|
| | | class tagCGAttentionAuctionItemChange(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("ItemID", c_int), |
| | | ("IsAttention", c_ubyte), #是否关注,取消关注发0
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xB5
|
| | | self.SubCmd = 0x18
|
| | | 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 = 0x18
|
| | | self.ItemID = 0
|
| | | self.IsAttention = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagCGAttentionAuctionItemChange)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// B5 18 拍卖行修改关注物品 //tagCGAttentionAuctionItemChange:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | ItemID:%d,
|
| | | IsAttention:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.ItemID,
|
| | | self.IsAttention
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagCGAttentionAuctionItemChange=tagCGAttentionAuctionItemChange()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCGAttentionAuctionItemChange.Cmd,m_NAtagCGAttentionAuctionItemChange.SubCmd))] = m_NAtagCGAttentionAuctionItemChange
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B5 03 交易所查询上架物品#tagCGPYQueryBourseItemOnSale
|
| | |
|
| | | class tagCGPYQueryBourseItemOnSale(Structure):
|
| | |
| | | ClassLV = 0 #(BYTE ClassLV)//过滤阶数,0为不限制
|
| | | SpecItemIDCount = 0 #(BYTE SpecItemIDCount)//指定物品ID个数
|
| | | SpecItemIDList = list() #(vector<DWORD> SpecItemIDList)//指定物品ID
|
| | | FromNum = 0 #(WORD FromNum)//查询起始数 (从1开始)
|
| | | FromItemGUID = "" #(char FromItemGUID[40])//从哪个物品开始查询
|
| | | QueryDir = 0 #(BYTE QueryDir)//查询方向,1-往后查,2-往前查
|
| | | QueryCount = 0 #(BYTE QueryCount)//查询个数,0为全部
|
| | | data = None
|
| | |
|
| | |
| | | for i in range(self.SpecItemIDCount):
|
| | | value,_pos=CommFunc.ReadDWORD(_lpData,_pos)
|
| | | self.SpecItemIDList.append(value)
|
| | | self.FromNum,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | self.FromItemGUID,_pos = CommFunc.ReadString(_lpData, _pos,40)
|
| | | self.QueryDir,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.QueryCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | return _pos
|
| | |
|
| | |
| | | self.ClassLV = 0
|
| | | self.SpecItemIDCount = 0
|
| | | self.SpecItemIDList = list()
|
| | | self.FromNum = 0
|
| | | self.FromItemGUID = ""
|
| | | self.QueryDir = 0
|
| | | self.QueryCount = 0
|
| | | return
|
| | |
|
| | |
| | | length += 1
|
| | | length += 1
|
| | | length += 4 * self.SpecItemIDCount
|
| | | length += 2
|
| | | length += 40
|
| | | length += 1
|
| | | length += 1
|
| | |
|
| | | return length
|
| | |
| | | data = CommFunc.WriteBYTE(data, self.SpecItemIDCount)
|
| | | for i in range(self.SpecItemIDCount):
|
| | | data = CommFunc.WriteDWORD(data, self.SpecItemIDList[i])
|
| | | data = CommFunc.WriteWORD(data, self.FromNum)
|
| | | data = CommFunc.WriteString(data, 40, self.FromItemGUID)
|
| | | data = CommFunc.WriteBYTE(data, self.QueryDir)
|
| | | data = CommFunc.WriteBYTE(data, self.QueryCount)
|
| | | return data
|
| | |
|
| | |
| | | ClassLV:%d,
|
| | | SpecItemIDCount:%d,
|
| | | SpecItemIDList:%s,
|
| | | FromNum:%d,
|
| | | FromItemGUID:%s,
|
| | | QueryDir:%d,
|
| | | QueryCount:%d
|
| | | '''\
|
| | | %(
|
| | |
| | | self.ClassLV,
|
| | | self.SpecItemIDCount,
|
| | | "...",
|
| | | self.FromNum,
|
| | | self.FromItemGUID,
|
| | | self.QueryDir,
|
| | | self.QueryCount
|
| | | )
|
| | | return DumpString
|
| | |
| | |
|
| | | m_NAtagCGQueryAuctionRecord=tagCGQueryAuctionRecord()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCGQueryAuctionRecord.Cmd,m_NAtagCGQueryAuctionRecord.SubCmd))] = m_NAtagCGQueryAuctionRecord
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B5 15 拍卖行查询仙盟拍卖中的拍品 #tagCGQueryFamilyAuctionItem
|
| | |
|
| | | class tagCGQueryFamilyAuctionItem(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xB5
|
| | | self.SubCmd = 0x15
|
| | | 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 = 0x15
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagCGQueryFamilyAuctionItem)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// B5 15 拍卖行查询仙盟拍卖中的拍品 //tagCGQueryFamilyAuctionItem:
|
| | | Cmd:%s,
|
| | | SubCmd:%s
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagCGQueryFamilyAuctionItem=tagCGQueryFamilyAuctionItem()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCGQueryFamilyAuctionItem.Cmd,m_NAtagCGQueryFamilyAuctionItem.SubCmd))] = m_NAtagCGQueryFamilyAuctionItem
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B5 11 拍卖行查询个人拍卖中的物品 #tagCGQueryPlayerAuctionItem
|
| | |
|
| | | class tagCGQueryPlayerAuctionItem(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ]
|
| | |
|
| | | 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
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagCGQueryPlayerAuctionItem)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// B5 11 拍卖行查询个人拍卖中的物品 //tagCGQueryPlayerAuctionItem:
|
| | | Cmd:%s,
|
| | | SubCmd:%s
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagCGQueryPlayerAuctionItem=tagCGQueryPlayerAuctionItem()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCGQueryPlayerAuctionItem.Cmd,m_NAtagCGQueryPlayerAuctionItem.SubCmd))] = m_NAtagCGQueryPlayerAuctionItem
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | |
| | | ClassLV = 0 #(BYTE ClassLV)//过滤阶数,0为不限制
|
| | | SpecItemIDCount = 0 #(BYTE SpecItemIDCount)//指定物品ID个数
|
| | | SpecItemIDList = list() #(vector<DWORD> SpecItemIDList)//指定物品ID
|
| | | FromNum = 0 #(WORD FromNum)//查询起始数 (从1开始)
|
| | | FromItemGUID = "" #(char FromItemGUID[40])//从哪个物品开始查询
|
| | | QueryDir = 0 #(BYTE QueryDir)//查询方向,1-往后查,2-往前查,3-定位查询
|
| | | QueryCount = 0 #(BYTE QueryCount)//查询个数,0为全部
|
| | | QueryTotalCount = 0 #(WORD QueryTotalCount)//查询条件实际总个数
|
| | | QueryRemainlCount = 0 #(WORD QueryRemainlCount)//查询条件对应查询方向剩余个数
|
| | | AuctionItemCount = 0 #(BYTE AuctionItemCount)//返回拍品数量
|
| | | AuctionItemList = list() #(vector<tagGCAuctionItem> AuctionItemList)//返回拍品列表
|
| | | data = None
|
| | |
| | | for i in range(self.SpecItemIDCount):
|
| | | value,_pos=CommFunc.ReadDWORD(_lpData,_pos)
|
| | | self.SpecItemIDList.append(value)
|
| | | self.FromNum,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | self.FromItemGUID,_pos = CommFunc.ReadString(_lpData, _pos,40)
|
| | | self.QueryDir,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.QueryCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.QueryTotalCount,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | self.QueryRemainlCount,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | self.AuctionItemCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.AuctionItemCount):
|
| | | temAuctionItemList = tagGCAuctionItem()
|
| | |
| | | self.ClassLV = 0
|
| | | self.SpecItemIDCount = 0
|
| | | self.SpecItemIDList = list()
|
| | | self.FromNum = 0
|
| | | self.FromItemGUID = ""
|
| | | self.QueryDir = 0
|
| | | self.QueryCount = 0
|
| | | self.QueryTotalCount = 0
|
| | | self.QueryRemainlCount = 0
|
| | | self.AuctionItemCount = 0
|
| | | self.AuctionItemList = list()
|
| | | return
|
| | |
| | | length += 1
|
| | | length += 1
|
| | | length += 4 * self.SpecItemIDCount
|
| | | length += 2
|
| | | length += 40
|
| | | length += 1
|
| | | length += 1
|
| | | length += 2
|
| | | length += 1
|
| | |
| | | data = CommFunc.WriteBYTE(data, self.SpecItemIDCount)
|
| | | for i in range(self.SpecItemIDCount):
|
| | | data = CommFunc.WriteDWORD(data, self.SpecItemIDList[i])
|
| | | data = CommFunc.WriteWORD(data, self.FromNum)
|
| | | data = CommFunc.WriteString(data, 40, self.FromItemGUID)
|
| | | data = CommFunc.WriteBYTE(data, self.QueryDir)
|
| | | data = CommFunc.WriteBYTE(data, self.QueryCount)
|
| | | data = CommFunc.WriteWORD(data, self.QueryTotalCount)
|
| | | data = CommFunc.WriteWORD(data, self.QueryRemainlCount)
|
| | | data = CommFunc.WriteBYTE(data, self.AuctionItemCount)
|
| | | for i in range(self.AuctionItemCount):
|
| | | data = CommFunc.WriteString(data, self.AuctionItemList[i].GetLength(), self.AuctionItemList[i].GetBuffer())
|
| | |
| | | ClassLV:%d,
|
| | | SpecItemIDCount:%d,
|
| | | SpecItemIDList:%s,
|
| | | FromNum:%d,
|
| | | FromItemGUID:%s,
|
| | | QueryDir:%d,
|
| | | QueryCount:%d,
|
| | | QueryTotalCount:%d,
|
| | | QueryRemainlCount:%d,
|
| | | AuctionItemCount:%d,
|
| | | AuctionItemList:%s
|
| | | '''\
|
| | |
| | | self.ClassLV,
|
| | | self.SpecItemIDCount,
|
| | | "...",
|
| | | self.FromNum,
|
| | | self.FromItemGUID,
|
| | | self.QueryDir,
|
| | | self.QueryCount,
|
| | | self.QueryTotalCount,
|
| | | self.QueryRemainlCount,
|
| | | self.AuctionItemCount,
|
| | | "..."
|
| | | )
|