| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # C0 23 跨服排位竞猜个人信息 #tagGCChampionshipGuessPriInfo
|
| | |
|
| | | class tagGCChampionshipGuessPlayerPri(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("PlayerID", c_int), # 目标玩家ID
|
| | | ("MoneyTotal", c_int), # 已投注该玩家货币总数
|
| | | ("GuessRank", c_ubyte), # 竞猜名次,没有名次的竞猜默认0;1-代表第一名
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | 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.PlayerID = 0
|
| | | self.MoneyTotal = 0
|
| | | self.GuessRank = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagGCChampionshipGuessPlayerPri)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// C0 23 跨服排位竞猜个人信息 //tagGCChampionshipGuessPriInfo:
|
| | | PlayerID:%d,
|
| | | MoneyTotal:%d,
|
| | | GuessRank:%d
|
| | | '''\
|
| | | %(
|
| | | self.PlayerID,
|
| | | self.MoneyTotal,
|
| | | self.GuessRank
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | class tagGCChampionshipGuessPriList(Structure):
|
| | | GuessType = 0 #(BYTE GuessType)//竞猜类型 8-8强;4-4强排位
|
| | | PlayerCount = 0 #(BYTE PlayerCount)
|
| | | GuessPlayerList = list() #(vector<tagGCChampionshipGuessPlayerPri> GuessPlayerList)// 被竞猜玩家列表
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | self.GuessType,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.PlayerCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.PlayerCount):
|
| | | temGuessPlayerList = tagGCChampionshipGuessPlayerPri()
|
| | | _pos = temGuessPlayerList.ReadData(_lpData, _pos)
|
| | | self.GuessPlayerList.append(temGuessPlayerList)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.GuessType = 0
|
| | | self.PlayerCount = 0
|
| | | self.GuessPlayerList = list()
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += 1
|
| | | length += 1
|
| | | for i in range(self.PlayerCount):
|
| | | length += self.GuessPlayerList[i].GetLength()
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteBYTE(data, self.GuessType)
|
| | | data = CommFunc.WriteBYTE(data, self.PlayerCount)
|
| | | for i in range(self.PlayerCount):
|
| | | data = CommFunc.WriteString(data, self.GuessPlayerList[i].GetLength(), self.GuessPlayerList[i].GetBuffer())
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | GuessType:%d,
|
| | | PlayerCount:%d,
|
| | | GuessPlayerList:%s
|
| | | '''\
|
| | | %(
|
| | | self.GuessType,
|
| | | self.PlayerCount,
|
| | | "..."
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | class tagGCChampionshipGuessPriInfo(Structure):
|
| | | Head = tagHead()
|
| | | ZoneID = 0 #(BYTE ZoneID)// 排位数据分区ID
|
| | | Count = 0 #(BYTE Count)
|
| | | GuessList = list() #(vector<tagGCChampionshipGuessPriList> GuessList)
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Head.Cmd = 0xC0
|
| | | self.Head.SubCmd = 0x23
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | _pos = self.Head.ReadData(_lpData, _pos)
|
| | | self.ZoneID,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.Count):
|
| | | temGuessList = tagGCChampionshipGuessPriList()
|
| | | _pos = temGuessList.ReadData(_lpData, _pos)
|
| | | self.GuessList.append(temGuessList)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.Head = tagHead()
|
| | | self.Head.Clear()
|
| | | self.Head.Cmd = 0xC0
|
| | | self.Head.SubCmd = 0x23
|
| | | self.ZoneID = 0
|
| | | self.Count = 0
|
| | | self.GuessList = list()
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += self.Head.GetLength()
|
| | | length += 1
|
| | | length += 1
|
| | | for i in range(self.Count):
|
| | | length += self.GuessList[i].GetLength()
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
|
| | | data = CommFunc.WriteBYTE(data, self.ZoneID)
|
| | | data = CommFunc.WriteBYTE(data, self.Count)
|
| | | for i in range(self.Count):
|
| | | data = CommFunc.WriteString(data, self.GuessList[i].GetLength(), self.GuessList[i].GetBuffer())
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | Head:%s,
|
| | | ZoneID:%d,
|
| | | Count:%d,
|
| | | GuessList:%s
|
| | | '''\
|
| | | %(
|
| | | self.Head.OutputString(),
|
| | | self.ZoneID,
|
| | | self.Count,
|
| | | "..."
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagGCChampionshipGuessPriInfo=tagGCChampionshipGuessPriInfo()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGCChampionshipGuessPriInfo.Head.Cmd,m_NAtagGCChampionshipGuessPriInfo.Head.SubCmd))] = m_NAtagGCChampionshipGuessPriInfo
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # C0 22 跨服排位竞猜公共信息 #tagGCChampionshipGuessPubInfo
|
| | |
|
| | | class tagGCChampionshipGuessPlayerPub(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("PlayerID", c_int), # 目标玩家ID
|
| | | ("SupportCount", c_int), # 支持人数
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | 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.PlayerID = 0
|
| | | self.SupportCount = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagGCChampionshipGuessPlayerPub)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// C0 22 跨服排位竞猜公共信息 //tagGCChampionshipGuessPubInfo:
|
| | | PlayerID:%d,
|
| | | SupportCount:%d
|
| | | '''\
|
| | | %(
|
| | | self.PlayerID,
|
| | | self.SupportCount
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | class tagGCChampionshipGuessPubList(Structure):
|
| | | GuessType = 0 #(BYTE GuessType)//竞猜类型 8-8强;4-4强排位
|
| | | PlayerCount = 0 #(BYTE PlayerCount)
|
| | | GuessPlayerList = list() #(vector<tagGCChampionshipGuessPlayerPub> GuessPlayerList)// 被竞猜玩家列表
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | self.GuessType,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.PlayerCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.PlayerCount):
|
| | | temGuessPlayerList = tagGCChampionshipGuessPlayerPub()
|
| | | _pos = temGuessPlayerList.ReadData(_lpData, _pos)
|
| | | self.GuessPlayerList.append(temGuessPlayerList)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.GuessType = 0
|
| | | self.PlayerCount = 0
|
| | | self.GuessPlayerList = list()
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += 1
|
| | | length += 1
|
| | | for i in range(self.PlayerCount):
|
| | | length += self.GuessPlayerList[i].GetLength()
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteBYTE(data, self.GuessType)
|
| | | data = CommFunc.WriteBYTE(data, self.PlayerCount)
|
| | | for i in range(self.PlayerCount):
|
| | | data = CommFunc.WriteString(data, self.GuessPlayerList[i].GetLength(), self.GuessPlayerList[i].GetBuffer())
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | GuessType:%d,
|
| | | PlayerCount:%d,
|
| | | GuessPlayerList:%s
|
| | | '''\
|
| | | %(
|
| | | self.GuessType,
|
| | | self.PlayerCount,
|
| | | "..."
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | class tagGCChampionshipGuessPubInfo(Structure):
|
| | | Head = tagHead()
|
| | | ZoneID = 0 #(BYTE ZoneID)// 排位数据分区ID
|
| | | Count = 0 #(BYTE Count)
|
| | | GuessList = list() #(vector<tagGCChampionshipGuessPubList> GuessList)
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Head.Cmd = 0xC0
|
| | | self.Head.SubCmd = 0x22
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | _pos = self.Head.ReadData(_lpData, _pos)
|
| | | self.ZoneID,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.Count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.Count):
|
| | | temGuessList = tagGCChampionshipGuessPubList()
|
| | | _pos = temGuessList.ReadData(_lpData, _pos)
|
| | | self.GuessList.append(temGuessList)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.Head = tagHead()
|
| | | self.Head.Clear()
|
| | | self.Head.Cmd = 0xC0
|
| | | self.Head.SubCmd = 0x22
|
| | | self.ZoneID = 0
|
| | | self.Count = 0
|
| | | self.GuessList = list()
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += self.Head.GetLength()
|
| | | length += 1
|
| | | length += 1
|
| | | for i in range(self.Count):
|
| | | length += self.GuessList[i].GetLength()
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
|
| | | data = CommFunc.WriteBYTE(data, self.ZoneID)
|
| | | data = CommFunc.WriteBYTE(data, self.Count)
|
| | | for i in range(self.Count):
|
| | | data = CommFunc.WriteString(data, self.GuessList[i].GetLength(), self.GuessList[i].GetBuffer())
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | Head:%s,
|
| | | ZoneID:%d,
|
| | | Count:%d,
|
| | | GuessList:%s
|
| | | '''\
|
| | | %(
|
| | | self.Head.OutputString(),
|
| | | self.ZoneID,
|
| | | self.Count,
|
| | | "..."
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagGCChampionshipGuessPubInfo=tagGCChampionshipGuessPubInfo()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGCChampionshipGuessPubInfo.Head.Cmd,m_NAtagGCChampionshipGuessPubInfo.Head.SubCmd))] = m_NAtagGCChampionshipGuessPubInfo
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # C0 19 跨服排位仙官申请回应结果 #tagGCChampionshipOfficialApplyReplyRet
|
| | |
|
| | | class tagGCChampionshipOfficialApplyReplyRet(Structure):
|
| | | Head = tagHead()
|
| | | NameLen = 0 #(BYTE NameLen)
|
| | | PlayerName = "" #(String PlayerName)// 界主玩家名
|
| | | MainOfficialID = 0 #(WORD MainOfficialID)//界主官职ID
|
| | | OfficialID = 0 #(WORD OfficialID)//申请官职ID
|
| | | IsOK = 0 #(BYTE IsOK)//是否同意;1-是;0-否
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Head.Cmd = 0xC0
|
| | | self.Head.SubCmd = 0x19
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | _pos = self.Head.ReadData(_lpData, _pos)
|
| | | self.NameLen,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.PlayerName,_pos = CommFunc.ReadString(_lpData, _pos,self.NameLen)
|
| | | self.MainOfficialID,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | self.OfficialID,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | self.IsOK,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.Head = tagHead()
|
| | | self.Head.Clear()
|
| | | self.Head.Cmd = 0xC0
|
| | | self.Head.SubCmd = 0x19
|
| | | self.NameLen = 0
|
| | | self.PlayerName = ""
|
| | | self.MainOfficialID = 0
|
| | | self.OfficialID = 0
|
| | | self.IsOK = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += self.Head.GetLength()
|
| | | length += 1
|
| | | length += len(self.PlayerName)
|
| | | length += 2
|
| | | length += 2
|
| | | length += 1
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
|
| | | data = CommFunc.WriteBYTE(data, self.NameLen)
|
| | | data = CommFunc.WriteString(data, self.NameLen, self.PlayerName)
|
| | | data = CommFunc.WriteWORD(data, self.MainOfficialID)
|
| | | data = CommFunc.WriteWORD(data, self.OfficialID)
|
| | | data = CommFunc.WriteBYTE(data, self.IsOK)
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | Head:%s,
|
| | | NameLen:%d,
|
| | | PlayerName:%s,
|
| | | MainOfficialID:%d,
|
| | | OfficialID:%d,
|
| | | IsOK:%d
|
| | | '''\
|
| | | %(
|
| | | self.Head.OutputString(),
|
| | | self.NameLen,
|
| | | self.PlayerName,
|
| | | self.MainOfficialID,
|
| | | self.OfficialID,
|
| | | self.IsOK
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagGCChampionshipOfficialApplyReplyRet=tagGCChampionshipOfficialApplyReplyRet()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGCChampionshipOfficialApplyReplyRet.Head.Cmd,m_NAtagGCChampionshipOfficialApplyReplyRet.Head.SubCmd))] = m_NAtagGCChampionshipOfficialApplyReplyRet
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # C0 21 跨服排位仙官挑战记录 #tagGCChampionshipOfficialChallengeRecordInfo
|
| | |
|
| | | class tagGCChampionshipOfficialChallengeRecord(Structure):
|
| | | NameLen = 0 #(BYTE NameLen)
|
| | | PlayerName = "" #(String PlayerName)
|
| | | ChallengeTime = 0 #(DWORD ChallengeTime)//挑战时间戳
|
| | | Ret = 0 #(BYTE Ret)//挑战结果;0-失败;1-获胜;
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | self.NameLen,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.PlayerName,_pos = CommFunc.ReadString(_lpData, _pos,self.NameLen)
|
| | | self.ChallengeTime,_pos = CommFunc.ReadDWORD(_lpData, _pos)
|
| | | self.Ret,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.NameLen = 0
|
| | | self.PlayerName = ""
|
| | | self.ChallengeTime = 0
|
| | | self.Ret = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += 1
|
| | | length += len(self.PlayerName)
|
| | | length += 4
|
| | | length += 1
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteBYTE(data, self.NameLen)
|
| | | data = CommFunc.WriteString(data, self.NameLen, self.PlayerName)
|
| | | data = CommFunc.WriteDWORD(data, self.ChallengeTime)
|
| | | data = CommFunc.WriteBYTE(data, self.Ret)
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | NameLen:%d,
|
| | | PlayerName:%s,
|
| | | ChallengeTime:%d,
|
| | | Ret:%d
|
| | | '''\
|
| | | %(
|
| | | self.NameLen,
|
| | | self.PlayerName,
|
| | | self.ChallengeTime,
|
| | | self.Ret
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | class tagGCChampionshipOfficialChallengeRecordInfo(Structure):
|
| | | Head = tagHead()
|
| | | ZoneID = 0 #(BYTE ZoneID)// 分区ID
|
| | | MainOfficialID = 0 #(WORD MainOfficialID)// 界主官职ID
|
| | | OfficialID = 0 #(WORD OfficialID)// 记录的官职ID
|
| | | RecordCount = 0 #(BYTE RecordCount)// 挑战记录数
|
| | | RecordList = list() #(vector<tagGCChampionshipOfficialChallengeRecord> RecordList)
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Head.Cmd = 0xC0
|
| | | self.Head.SubCmd = 0x21
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | _pos = self.Head.ReadData(_lpData, _pos)
|
| | | self.ZoneID,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.MainOfficialID,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | self.OfficialID,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | self.RecordCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.RecordCount):
|
| | | temRecordList = tagGCChampionshipOfficialChallengeRecord()
|
| | | _pos = temRecordList.ReadData(_lpData, _pos)
|
| | | self.RecordList.append(temRecordList)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.Head = tagHead()
|
| | | self.Head.Clear()
|
| | | self.Head.Cmd = 0xC0
|
| | | self.Head.SubCmd = 0x21
|
| | | self.ZoneID = 0
|
| | | self.MainOfficialID = 0
|
| | | self.OfficialID = 0
|
| | | self.RecordCount = 0
|
| | | self.RecordList = list()
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += self.Head.GetLength()
|
| | | length += 1
|
| | | length += 2
|
| | | length += 2
|
| | | length += 1
|
| | | for i in range(self.RecordCount):
|
| | | length += self.RecordList[i].GetLength()
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
|
| | | data = CommFunc.WriteBYTE(data, self.ZoneID)
|
| | | data = CommFunc.WriteWORD(data, self.MainOfficialID)
|
| | | data = CommFunc.WriteWORD(data, self.OfficialID)
|
| | | data = CommFunc.WriteBYTE(data, self.RecordCount)
|
| | | for i in range(self.RecordCount):
|
| | | data = CommFunc.WriteString(data, self.RecordList[i].GetLength(), self.RecordList[i].GetBuffer())
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | Head:%s,
|
| | | ZoneID:%d,
|
| | | MainOfficialID:%d,
|
| | | OfficialID:%d,
|
| | | RecordCount:%d,
|
| | | RecordList:%s
|
| | | '''\
|
| | | %(
|
| | | self.Head.OutputString(),
|
| | | self.ZoneID,
|
| | | self.MainOfficialID,
|
| | | self.OfficialID,
|
| | | self.RecordCount,
|
| | | "..."
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagGCChampionshipOfficialChallengeRecordInfo=tagGCChampionshipOfficialChallengeRecordInfo()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGCChampionshipOfficialChallengeRecordInfo.Head.Cmd,m_NAtagGCChampionshipOfficialChallengeRecordInfo.Head.SubCmd))] = m_NAtagGCChampionshipOfficialChallengeRecordInfo
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # C0 20 跨服排位仙官挑战结果 #tagGCChampionshipOfficialChallengeRet
|
| | |
|
| | | class tagGCChampionshipOfficialChallengeRet(Structure):
|
| | | Head = tagHead()
|
| | | NameLen = 0 #(BYTE NameLen)
|
| | | PlayerName = "" #(String PlayerName)// 原仙官玩家名,可能为空,代表本来无玩家
|
| | | MainOfficialID = 0 #(WORD MainOfficialID)//界主官职ID
|
| | | OfficialID = 0 #(WORD OfficialID)//挑战的官职ID
|
| | | Ret = 0 #(BYTE Ret)//挑战结果;0-失败;1-获胜;2-目标仙官玩家ID已变更,可刷新后重试
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Head.Cmd = 0xC0
|
| | | self.Head.SubCmd = 0x20
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | _pos = self.Head.ReadData(_lpData, _pos)
|
| | | self.NameLen,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.PlayerName,_pos = CommFunc.ReadString(_lpData, _pos,self.NameLen)
|
| | | self.MainOfficialID,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | self.OfficialID,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | self.Ret,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.Head = tagHead()
|
| | | self.Head.Clear()
|
| | | self.Head.Cmd = 0xC0
|
| | | self.Head.SubCmd = 0x20
|
| | | self.NameLen = 0
|
| | | self.PlayerName = ""
|
| | | self.MainOfficialID = 0
|
| | | self.OfficialID = 0
|
| | | self.Ret = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += self.Head.GetLength()
|
| | | length += 1
|
| | | length += len(self.PlayerName)
|
| | | length += 2
|
| | | length += 2
|
| | | length += 1
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
|
| | | data = CommFunc.WriteBYTE(data, self.NameLen)
|
| | | data = CommFunc.WriteString(data, self.NameLen, self.PlayerName)
|
| | | data = CommFunc.WriteWORD(data, self.MainOfficialID)
|
| | | data = CommFunc.WriteWORD(data, self.OfficialID)
|
| | | data = CommFunc.WriteBYTE(data, self.Ret)
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | Head:%s,
|
| | | NameLen:%d,
|
| | | PlayerName:%s,
|
| | | MainOfficialID:%d,
|
| | | OfficialID:%d,
|
| | | Ret:%d
|
| | | '''\
|
| | | %(
|
| | | self.Head.OutputString(),
|
| | | self.NameLen,
|
| | | self.PlayerName,
|
| | | self.MainOfficialID,
|
| | | self.OfficialID,
|
| | | self.Ret
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagGCChampionshipOfficialChallengeRet=tagGCChampionshipOfficialChallengeRet()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGCChampionshipOfficialChallengeRet.Head.Cmd,m_NAtagGCChampionshipOfficialChallengeRet.Head.SubCmd))] = m_NAtagGCChampionshipOfficialChallengeRet
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # C0 18 跨服排位官职信息 #tagGCChampionshipOfficialInfo
|
| | |
|
| | | class tagGCChampionshipOfficialPlayer(Structure):
|
| | | PlayerID = 0 #(DWORD PlayerID)// 玩家ID
|
| | | NameLen = 0 #(BYTE NameLen)
|
| | | PlayerName = "" #(String PlayerName)
|
| | | Job = 0 #(BYTE Job)
|
| | | LV = 0 #(WORD LV)
|
| | | FightPower = 0 #(DWORD FightPower)// 战力求余亿部分
|
| | | FightPowerEx = 0 #(DWORD FightPowerEx)// 战力整除亿部分
|
| | | RealmLV = 0 #(WORD RealmLV)
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | self.PlayerID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
|
| | | self.NameLen,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.PlayerName,_pos = CommFunc.ReadString(_lpData, _pos,self.NameLen)
|
| | | self.Job,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.LV,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | self.FightPower,_pos = CommFunc.ReadDWORD(_lpData, _pos)
|
| | | self.FightPowerEx,_pos = CommFunc.ReadDWORD(_lpData, _pos)
|
| | | self.RealmLV,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.PlayerID = 0
|
| | | self.NameLen = 0
|
| | | self.PlayerName = ""
|
| | | self.Job = 0
|
| | | self.LV = 0
|
| | | self.FightPower = 0
|
| | | self.FightPowerEx = 0
|
| | | self.RealmLV = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += 4
|
| | | length += 1
|
| | | length += len(self.PlayerName)
|
| | | length += 1
|
| | | length += 2
|
| | | length += 4
|
| | | length += 4
|
| | | length += 2
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteDWORD(data, self.PlayerID)
|
| | | data = CommFunc.WriteBYTE(data, self.NameLen)
|
| | | data = CommFunc.WriteString(data, self.NameLen, self.PlayerName)
|
| | | data = CommFunc.WriteBYTE(data, self.Job)
|
| | | data = CommFunc.WriteWORD(data, self.LV)
|
| | | data = CommFunc.WriteDWORD(data, self.FightPower)
|
| | | data = CommFunc.WriteDWORD(data, self.FightPowerEx)
|
| | | data = CommFunc.WriteWORD(data, self.RealmLV)
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | PlayerID:%d,
|
| | | NameLen:%d,
|
| | | PlayerName:%s,
|
| | | Job:%d,
|
| | | LV:%d,
|
| | | FightPower:%d,
|
| | | FightPowerEx:%d,
|
| | | RealmLV:%d
|
| | | '''\
|
| | | %(
|
| | | self.PlayerID,
|
| | | self.NameLen,
|
| | | self.PlayerName,
|
| | | self.Job,
|
| | | self.LV,
|
| | | self.FightPower,
|
| | | self.FightPowerEx,
|
| | | self.RealmLV
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | class tagGCChampionshipOfficial(Structure):
|
| | | OfficialID = 0 #(DWORD OfficialID)// 官职ID
|
| | | LastDismissJuniorTime = 0 #(DWORD LastDismissJuniorTime)// 上次辞退下级仙官时间戳,跨服时间,如果自己是本界主时,用于计算辞退CD
|
| | | WorshipCount = 0 #(DWORD WorshipCount)// 被膜拜次数
|
| | | WorshipDouble = 0 #(BYTE WorshipDouble)// 今日是否双倍膜拜,仅在规定时间点内有用
|
| | | OfficialPlayer=tagGCChampionshipOfficialPlayer() #(tagGCChampionshipOfficialPlayer OfficialPlayer)// 任职玩家信息,可能没有
|
| | | ApplyPlayerCount = 0 #(BYTE ApplyPlayerCount)// 申请该仙官玩家数
|
| | | ApplyPlayerList = list() #(vector<tagGCChampionshipOfficialPlayer> ApplyPlayerList)// 申请该仙官玩家列表
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | self.OfficialID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
|
| | | self.LastDismissJuniorTime,_pos = CommFunc.ReadDWORD(_lpData, _pos)
|
| | | self.WorshipCount,_pos = CommFunc.ReadDWORD(_lpData, _pos)
|
| | | self.WorshipDouble,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | _pos = self.OfficialPlayer.ReadData(_lpData,_pos)
|
| | | self.ApplyPlayerCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.ApplyPlayerCount):
|
| | | temApplyPlayerList = tagGCChampionshipOfficialPlayer()
|
| | | _pos = temApplyPlayerList.ReadData(_lpData, _pos)
|
| | | self.ApplyPlayerList.append(temApplyPlayerList)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.OfficialID = 0
|
| | | self.LastDismissJuniorTime = 0
|
| | | self.WorshipCount = 0
|
| | | self.WorshipDouble = 0
|
| | | self.OfficialPlayer=tagGCChampionshipOfficialPlayer()
|
| | | self.OfficialPlayer.Clear()
|
| | | self.ApplyPlayerCount = 0
|
| | | self.ApplyPlayerList = list()
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += 4
|
| | | length += 4
|
| | | length += 4
|
| | | length += 1
|
| | | length += self.OfficialPlayer.GetLength()
|
| | | length += 1
|
| | | for i in range(self.ApplyPlayerCount):
|
| | | length += self.ApplyPlayerList[i].GetLength()
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteDWORD(data, self.OfficialID)
|
| | | data = CommFunc.WriteDWORD(data, self.LastDismissJuniorTime)
|
| | | data = CommFunc.WriteDWORD(data, self.WorshipCount)
|
| | | data = CommFunc.WriteBYTE(data, self.WorshipDouble)
|
| | | data = CommFunc.WriteString(data,self.OfficialPlayer.GetLength(),self.OfficialPlayer.GetBuffer())
|
| | | data = CommFunc.WriteBYTE(data, self.ApplyPlayerCount)
|
| | | for i in range(self.ApplyPlayerCount):
|
| | | data = CommFunc.WriteString(data, self.ApplyPlayerList[i].GetLength(), self.ApplyPlayerList[i].GetBuffer())
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | OfficialID:%d,
|
| | | LastDismissJuniorTime:%d,
|
| | | WorshipCount:%d,
|
| | | WorshipDouble:%d,
|
| | | OfficialPlayer:%s,
|
| | | ApplyPlayerCount:%d,
|
| | | ApplyPlayerList:%s
|
| | | '''\
|
| | | %(
|
| | | self.OfficialID,
|
| | | self.LastDismissJuniorTime,
|
| | | self.WorshipCount,
|
| | | self.WorshipDouble,
|
| | | self.OfficialPlayer.OutputString(),
|
| | | self.ApplyPlayerCount,
|
| | | "..."
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | class tagGCChampionshipOfficialInfo(Structure):
|
| | | Head = tagHead()
|
| | | ZoneID = 0 #(BYTE ZoneID)// 官职数据分区ID
|
| | | OfficialCount = 0 #(BYTE OfficialCount)// 官职数,包含界主及所有仙官
|
| | | OfficialList = list() #(vector<tagGCChampionshipOfficial> OfficialList)
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Head.Cmd = 0xC0
|
| | | self.Head.SubCmd = 0x18
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | _pos = self.Head.ReadData(_lpData, _pos)
|
| | | self.ZoneID,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.OfficialCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.OfficialCount):
|
| | | temOfficialList = tagGCChampionshipOfficial()
|
| | | _pos = temOfficialList.ReadData(_lpData, _pos)
|
| | | self.OfficialList.append(temOfficialList)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.Head = tagHead()
|
| | | self.Head.Clear()
|
| | | self.Head.Cmd = 0xC0
|
| | | self.Head.SubCmd = 0x18
|
| | | self.ZoneID = 0
|
| | | self.OfficialCount = 0
|
| | | self.OfficialList = list()
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += self.Head.GetLength()
|
| | | length += 1
|
| | | length += 1
|
| | | for i in range(self.OfficialCount):
|
| | | length += self.OfficialList[i].GetLength()
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
|
| | | data = CommFunc.WriteBYTE(data, self.ZoneID)
|
| | | data = CommFunc.WriteBYTE(data, self.OfficialCount)
|
| | | for i in range(self.OfficialCount):
|
| | | data = CommFunc.WriteString(data, self.OfficialList[i].GetLength(), self.OfficialList[i].GetBuffer())
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | Head:%s,
|
| | | ZoneID:%d,
|
| | | OfficialCount:%d,
|
| | | OfficialList:%s
|
| | | '''\
|
| | | %(
|
| | | self.Head.OutputString(),
|
| | | self.ZoneID,
|
| | | self.OfficialCount,
|
| | | "..."
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagGCChampionshipOfficialInfo=tagGCChampionshipOfficialInfo()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGCChampionshipOfficialInfo.Head.Cmd,m_NAtagGCChampionshipOfficialInfo.Head.SubCmd))] = m_NAtagGCChampionshipOfficialInfo
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # C0 09 跨服战场玩家购买战场信息 #tagGCCrossBattlefieldBuyInfo
|
| | |
|
| | | class tagGCCrossBattlefieldPlayer(Structure):
|
| | |
| | |
|
| | | m_NAtagGCCrossBillboardInfo=tagGCCrossBillboardInfo()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGCCrossBillboardInfo.Head.Cmd,m_NAtagGCCrossBillboardInfo.Head.SubCmd))] = m_NAtagGCCrossBillboardInfo
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # C0 16 跨服排位战斗结果 #tagGCCrossChampionshipPKOver
|
| | |
|
| | | class tagGCCrossChampionshipPKOver(Structure):
|
| | | Head = tagHead()
|
| | | GroupMark = 0 #(DWORD GroupMark)// 分组标识:64、32、16、8 - 64、32、16、8强赛;4 - 半决赛; 2 - 决赛
|
| | | TimeStr = "" #(char TimeStr[19])// 结算时间,格式 yyyy-MM-dd HH:mm:ss
|
| | | OverType = 0 #(BYTE OverType)// 0-正常,1-有人离线
|
| | | WinnerID = 0 #(DWORD WinnerID)// 胜方ID
|
| | | LoserID = 0 #(DWORD LoserID)// 败方ID
|
| | | RoundCount = 0 #(BYTE RoundCount)// PK回合数
|
| | | RoundWinnerID = list() #(vector<DWORD> RoundWinnerID)// 回合获胜ID列表
|
| | | TagNameLen = 0 #(BYTE TagNameLen)
|
| | | TagName = "" #(String TagName)
|
| | | Rank = 0 #(BYTE Rank)// 最终名次,决赛才有
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Head.Cmd = 0xC0
|
| | | self.Head.SubCmd = 0x16
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | _pos = self.Head.ReadData(_lpData, _pos)
|
| | | self.GroupMark,_pos = CommFunc.ReadDWORD(_lpData, _pos)
|
| | | self.TimeStr,_pos = CommFunc.ReadString(_lpData, _pos,19)
|
| | | self.OverType,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.WinnerID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
|
| | | self.LoserID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
|
| | | self.RoundCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.RoundCount):
|
| | | value,_pos=CommFunc.ReadDWORD(_lpData,_pos)
|
| | | self.RoundWinnerID.append(value)
|
| | | self.TagNameLen,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.TagName,_pos = CommFunc.ReadString(_lpData, _pos,self.TagNameLen)
|
| | | self.Rank,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.Head = tagHead()
|
| | | self.Head.Clear()
|
| | | self.Head.Cmd = 0xC0
|
| | | self.Head.SubCmd = 0x16
|
| | | self.GroupMark = 0
|
| | | self.TimeStr = ""
|
| | | self.OverType = 0
|
| | | self.WinnerID = 0
|
| | | self.LoserID = 0
|
| | | self.RoundCount = 0
|
| | | self.RoundWinnerID = list()
|
| | | self.TagNameLen = 0
|
| | | self.TagName = ""
|
| | | self.Rank = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += self.Head.GetLength()
|
| | | length += 4
|
| | | length += 19
|
| | | length += 1
|
| | | length += 4
|
| | | length += 4
|
| | | length += 1
|
| | | length += 4 * self.RoundCount
|
| | | length += 1
|
| | | length += len(self.TagName)
|
| | | length += 1
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
|
| | | data = CommFunc.WriteDWORD(data, self.GroupMark)
|
| | | data = CommFunc.WriteString(data, 19, self.TimeStr)
|
| | | data = CommFunc.WriteBYTE(data, self.OverType)
|
| | | data = CommFunc.WriteDWORD(data, self.WinnerID)
|
| | | data = CommFunc.WriteDWORD(data, self.LoserID)
|
| | | data = CommFunc.WriteBYTE(data, self.RoundCount)
|
| | | for i in range(self.RoundCount):
|
| | | data = CommFunc.WriteDWORD(data, self.RoundWinnerID[i])
|
| | | data = CommFunc.WriteBYTE(data, self.TagNameLen)
|
| | | data = CommFunc.WriteString(data, self.TagNameLen, self.TagName)
|
| | | data = CommFunc.WriteBYTE(data, self.Rank)
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | Head:%s,
|
| | | GroupMark:%d,
|
| | | TimeStr:%s,
|
| | | OverType:%d,
|
| | | WinnerID:%d,
|
| | | LoserID:%d,
|
| | | RoundCount:%d,
|
| | | RoundWinnerID:%s,
|
| | | TagNameLen:%d,
|
| | | TagName:%s,
|
| | | Rank:%d
|
| | | '''\
|
| | | %(
|
| | | self.Head.OutputString(),
|
| | | self.GroupMark,
|
| | | self.TimeStr,
|
| | | self.OverType,
|
| | | self.WinnerID,
|
| | | self.LoserID,
|
| | | self.RoundCount,
|
| | | "...",
|
| | | self.TagNameLen,
|
| | | self.TagName,
|
| | | self.Rank
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagGCCrossChampionshipPKOver=tagGCCrossChampionshipPKOver()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGCCrossChampionshipPKOver.Head.Cmd,m_NAtagGCCrossChampionshipPKOver.Head.SubCmd))] = m_NAtagGCCrossChampionshipPKOver
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # C0 15 跨服排位分区分组信息 #tagGCCrossChampionshipPKZoneGroupInfo
|
| | |
|
| | | class tagGCCrossChampionshipPKBattle(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("BattleNum", c_ubyte), # 对战组编号 1~n
|
| | | ("WinPlayerID", c_int), # 获胜玩家ID
|
| | | ("PlayerIDA", c_int), # 玩家IDA
|
| | | ("PlayerIDB", c_int), # 玩家IDB
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | 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.BattleNum = 0
|
| | | self.WinPlayerID = 0
|
| | | self.PlayerIDA = 0
|
| | | self.PlayerIDB = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagGCCrossChampionshipPKBattle)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// C0 15 跨服排位分区分组信息 //tagGCCrossChampionshipPKZoneGroupInfo:
|
| | | BattleNum:%d,
|
| | | WinPlayerID:%d,
|
| | | PlayerIDA:%d,
|
| | | PlayerIDB:%d
|
| | | '''\
|
| | | %(
|
| | | self.BattleNum,
|
| | | self.WinPlayerID,
|
| | | self.PlayerIDA,
|
| | | self.PlayerIDB
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | class tagGCCrossChampionshipPKGroup(Structure):
|
| | | GroupMark = 0 #(DWORD GroupMark)// 战斗分区mark, 如 64、32、16、8、4-半决赛、2-决赛;
|
| | | BattleCount = 0 #(BYTE BattleCount)// 对战组数
|
| | | BattleList = list() #(vector<tagGCCrossChampionshipPKBattle> BattleList)// 对战组列表
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | self.GroupMark,_pos = CommFunc.ReadDWORD(_lpData, _pos)
|
| | | self.BattleCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.BattleCount):
|
| | | temBattleList = tagGCCrossChampionshipPKBattle()
|
| | | _pos = temBattleList.ReadData(_lpData, _pos)
|
| | | self.BattleList.append(temBattleList)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.GroupMark = 0
|
| | | self.BattleCount = 0
|
| | | self.BattleList = list()
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += 4
|
| | | length += 1
|
| | | for i in range(self.BattleCount):
|
| | | length += self.BattleList[i].GetLength()
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteDWORD(data, self.GroupMark)
|
| | | data = CommFunc.WriteBYTE(data, self.BattleCount)
|
| | | for i in range(self.BattleCount):
|
| | | data = CommFunc.WriteString(data, self.BattleList[i].GetLength(), self.BattleList[i].GetBuffer())
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | GroupMark:%d,
|
| | | BattleCount:%d,
|
| | | BattleList:%s
|
| | | '''\
|
| | | %(
|
| | | self.GroupMark,
|
| | | self.BattleCount,
|
| | | "..."
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | class tagGCCrossChampionshipPKPlayer(Structure):
|
| | | PlayerID = 0 #(DWORD PlayerID)// 玩家ID
|
| | | NameLen = 0 #(BYTE NameLen)
|
| | | PlayerName = "" #(String PlayerName)
|
| | | Job = 0 #(BYTE Job)
|
| | | LV = 0 #(WORD LV)
|
| | | FightPower = 0 #(DWORD FightPower)// 战力求余亿部分
|
| | | FightPowerEx = 0 #(DWORD FightPowerEx)// 战力整除亿部分
|
| | | RealmLV = 0 #(WORD RealmLV)
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | self.PlayerID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
|
| | | self.NameLen,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.PlayerName,_pos = CommFunc.ReadString(_lpData, _pos,self.NameLen)
|
| | | self.Job,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.LV,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | self.FightPower,_pos = CommFunc.ReadDWORD(_lpData, _pos)
|
| | | self.FightPowerEx,_pos = CommFunc.ReadDWORD(_lpData, _pos)
|
| | | self.RealmLV,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.PlayerID = 0
|
| | | self.NameLen = 0
|
| | | self.PlayerName = ""
|
| | | self.Job = 0
|
| | | self.LV = 0
|
| | | self.FightPower = 0
|
| | | self.FightPowerEx = 0
|
| | | self.RealmLV = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += 4
|
| | | length += 1
|
| | | length += len(self.PlayerName)
|
| | | length += 1
|
| | | length += 2
|
| | | length += 4
|
| | | length += 4
|
| | | length += 2
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteDWORD(data, self.PlayerID)
|
| | | data = CommFunc.WriteBYTE(data, self.NameLen)
|
| | | data = CommFunc.WriteString(data, self.NameLen, self.PlayerName)
|
| | | data = CommFunc.WriteBYTE(data, self.Job)
|
| | | data = CommFunc.WriteWORD(data, self.LV)
|
| | | data = CommFunc.WriteDWORD(data, self.FightPower)
|
| | | data = CommFunc.WriteDWORD(data, self.FightPowerEx)
|
| | | data = CommFunc.WriteWORD(data, self.RealmLV)
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | PlayerID:%d,
|
| | | NameLen:%d,
|
| | | PlayerName:%s,
|
| | | Job:%d,
|
| | | LV:%d,
|
| | | FightPower:%d,
|
| | | FightPowerEx:%d,
|
| | | RealmLV:%d
|
| | | '''\
|
| | | %(
|
| | | self.PlayerID,
|
| | | self.NameLen,
|
| | | self.PlayerName,
|
| | | self.Job,
|
| | | self.LV,
|
| | | self.FightPower,
|
| | | self.FightPowerEx,
|
| | | self.RealmLV
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | class tagGCCrossChampionshipPKZoneGroupInfo(Structure):
|
| | | Head = tagHead()
|
| | | ActID = 0 #(DWORD ActID)// 活动ID,活动ID不同则可重置前端排位赛相关缓存数据
|
| | | StateError = 0 #(BYTE StateError)// 本次活动是否已经出现流程状态异常;如服务器异常或维护服务器导致跳过步骤,则会废弃该次比赛,直到下次新活动;
|
| | | ZoneID = 0 #(BYTE ZoneID)// 排位分区ID
|
| | | PlayerCount = 0 #(BYTE PlayerCount)// 参赛玩家数
|
| | | PlayerList = list() #(vector<tagGCCrossChampionshipPKPlayer> PlayerList)
|
| | | GroupCount = 0 #(WORD GroupCount)
|
| | | GroupList = list() #(vector<tagGCCrossChampionshipPKGroup> GroupList)
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Head.Cmd = 0xC0
|
| | | self.Head.SubCmd = 0x15
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | _pos = self.Head.ReadData(_lpData, _pos)
|
| | | self.ActID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
|
| | | self.StateError,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.ZoneID,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.PlayerCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.PlayerCount):
|
| | | temPlayerList = tagGCCrossChampionshipPKPlayer()
|
| | | _pos = temPlayerList.ReadData(_lpData, _pos)
|
| | | self.PlayerList.append(temPlayerList)
|
| | | self.GroupCount,_pos = CommFunc.ReadWORD(_lpData, _pos)
|
| | | for i in range(self.GroupCount):
|
| | | temGroupList = tagGCCrossChampionshipPKGroup()
|
| | | _pos = temGroupList.ReadData(_lpData, _pos)
|
| | | self.GroupList.append(temGroupList)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.Head = tagHead()
|
| | | self.Head.Clear()
|
| | | self.Head.Cmd = 0xC0
|
| | | self.Head.SubCmd = 0x15
|
| | | self.ActID = 0
|
| | | self.StateError = 0
|
| | | self.ZoneID = 0
|
| | | self.PlayerCount = 0
|
| | | self.PlayerList = list()
|
| | | self.GroupCount = 0
|
| | | self.GroupList = list()
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += self.Head.GetLength()
|
| | | length += 4
|
| | | length += 1
|
| | | length += 1
|
| | | length += 1
|
| | | for i in range(self.PlayerCount):
|
| | | length += self.PlayerList[i].GetLength()
|
| | | length += 2
|
| | | for i in range(self.GroupCount):
|
| | | length += self.GroupList[i].GetLength()
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
|
| | | data = CommFunc.WriteDWORD(data, self.ActID)
|
| | | data = CommFunc.WriteBYTE(data, self.StateError)
|
| | | data = CommFunc.WriteBYTE(data, self.ZoneID)
|
| | | data = CommFunc.WriteBYTE(data, self.PlayerCount)
|
| | | for i in range(self.PlayerCount):
|
| | | data = CommFunc.WriteString(data, self.PlayerList[i].GetLength(), self.PlayerList[i].GetBuffer())
|
| | | data = CommFunc.WriteWORD(data, self.GroupCount)
|
| | | for i in range(self.GroupCount):
|
| | | data = CommFunc.WriteString(data, self.GroupList[i].GetLength(), self.GroupList[i].GetBuffer())
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | Head:%s,
|
| | | ActID:%d,
|
| | | StateError:%d,
|
| | | ZoneID:%d,
|
| | | PlayerCount:%d,
|
| | | PlayerList:%s,
|
| | | GroupCount:%d,
|
| | | GroupList:%s
|
| | | '''\
|
| | | %(
|
| | | self.Head.OutputString(),
|
| | | self.ActID,
|
| | | self.StateError,
|
| | | self.ZoneID,
|
| | | self.PlayerCount,
|
| | | "...",
|
| | | self.GroupCount,
|
| | | "..."
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagGCCrossChampionshipPKZoneGroupInfo=tagGCCrossChampionshipPKZoneGroupInfo()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGCCrossChampionshipPKZoneGroupInfo.Head.Cmd,m_NAtagGCCrossChampionshipPKZoneGroupInfo.Head.SubCmd))] = m_NAtagGCCrossChampionshipPKZoneGroupInfo
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # C1 09 跨服排位玩家信息 #tagMCChampionshipPlayerInfo
|
| | |
|
| | | class tagMCChampionshipPlayerInfo(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("WorshipCount", c_ubyte), # 今日已膜拜次数
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xC1
|
| | | self.SubCmd = 0x09
|
| | | 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 = 0xC1
|
| | | self.SubCmd = 0x09
|
| | | self.WorshipCount = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagMCChampionshipPlayerInfo)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// C1 09 跨服排位玩家信息 //tagMCChampionshipPlayerInfo:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | WorshipCount:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.WorshipCount
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagMCChampionshipPlayerInfo=tagMCChampionshipPlayerInfo()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCChampionshipPlayerInfo.Cmd,m_NAtagMCChampionshipPlayerInfo.SubCmd))] = m_NAtagMCChampionshipPlayerInfo
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # C1 07 跨服战场玩家信息 #tagMCCrossBattlefieldPlayerInfo
|
| | |
|
| | | class tagMCCrossBattlefieldPlayerInfo(Structure):
|