| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # A5 14 祈福丹药 #tagCMPrayElixir
|
| | |
|
| | | class tagCMPrayElixir(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xA5
|
| | | self.SubCmd = 0x14
|
| | | 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 = 0xA5
|
| | | self.SubCmd = 0x14
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagCMPrayElixir)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// A5 14 祈福丹药 //tagCMPrayElixir:
|
| | | Cmd:%s,
|
| | | SubCmd:%s
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagCMPrayElixir=tagCMPrayElixir()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMPrayElixir.Cmd,m_NAtagCMPrayElixir.SubCmd))] = m_NAtagCMPrayElixir
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | #A5 34 查询天梯竞技场状态#tagCMQueryHighLadderState
|
| | |
|
| | | class tagCMQueryHighLadderState(Structure):
|