| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B1 25 玩家武将公共信息 #tagSCPlayerHeroInfo
|
| | |
|
| | | class tagSCPlayerHeroInfo(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("AwakeRebirthCnt", c_ubyte), # 今日觉醒过的武将已重生次数
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xB1
|
| | | self.SubCmd = 0x25
|
| | | 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 = 0xB1
|
| | | self.SubCmd = 0x25
|
| | | self.AwakeRebirthCnt = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagSCPlayerHeroInfo)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// B1 25 玩家武将公共信息 //tagSCPlayerHeroInfo:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | AwakeRebirthCnt:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.AwakeRebirthCnt
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagSCPlayerHeroInfo=tagSCPlayerHeroInfo()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagSCPlayerHeroInfo.Cmd,m_NAtagSCPlayerHeroInfo.SubCmd))] = m_NAtagSCPlayerHeroInfo
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B1 07 玩家点数信息 #tagMCRolePointInfo
|
| | |
|
| | | class tagMCRolePointInfo(Structure):
|