| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # A4 14 查看目标仙盟 #tagCGViewTagFamily
|
| | |
|
| | | class tagCGViewTagFamily(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("TagFamilyID", c_int), # 目标仙盟ID,支持查看跨服仙盟
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xA4
|
| | | 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 = 0xA4
|
| | | self.SubCmd = 0x14
|
| | | self.TagFamilyID = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagCGViewTagFamily)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// A4 14 查看目标仙盟 //tagCGViewTagFamily:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | TagFamilyID:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.TagFamilyID
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagCGViewTagFamily=tagCGViewTagFamily()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCGViewTagFamily.Cmd,m_NAtagCGViewTagFamily.SubCmd))] = m_NAtagCGViewTagFamily
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # A9 03 关注BOSS刷新 #tagCGAttentionBoss
|
| | |
|
| | | class tagCGAttentionBoss(Structure):
|