| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # A4 0C 多仙盟boss活动信息 #tagGCAllFamilyBossInfo
|
| | |
|
| | | class tagGCAllFamilyBossInfo(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("IsEnd", c_ubyte), # 是否已结束
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xA4
|
| | | self.SubCmd = 0x0C
|
| | | 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 = 0x0C
|
| | | self.IsEnd = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagGCAllFamilyBossInfo)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// A4 0C 多仙盟boss活动信息 //tagGCAllFamilyBossInfo:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | IsEnd:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.IsEnd
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagGCAllFamilyBossInfo=tagGCAllFamilyBossInfo()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGCAllFamilyBossInfo.Cmd,m_NAtagGCAllFamilyBossInfo.SubCmd))] = m_NAtagGCAllFamilyBossInfo
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # A4 0A 假仙盟信息 #tagGCFakeFamilyInfo
|
| | |
|
| | | class tagGCFakeFamilyInfo(Structure):
|
| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # A3 11 通知玩家境界渡劫是否开启 #tagMCSyncRealmFBIsOpen
|
| | | # A3 11 通知玩家境界信息 #tagMCSyncRealmInfo
|
| | |
|
| | | class tagMCSyncRealmFBIsOpen(Structure):
|
| | | class tagMCSyncRealmInfo(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("IsOpen", c_ubyte), #是否开启
|
| | | ("SitAllTime", c_ushort), #打坐总时间秒
|
| | | ("SitRemainTime", c_int), #开始打坐前剩余时间秒
|
| | | ("SitStartTime", c_int), #开始打坐时间
|
| | | ("LastEnterTime", c_int), #上次进入渡劫副本时间
|
| | | ("IsPass", c_ubyte), #是否通关副本
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | |
| | | def Clear(self):
|
| | | self.Cmd = 0xA3
|
| | | self.SubCmd = 0x11
|
| | | self.IsOpen = 0
|
| | | self.SitAllTime = 0
|
| | | self.SitRemainTime = 0
|
| | | self.SitStartTime = 0
|
| | | self.LastEnterTime = 0
|
| | | self.IsPass = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagMCSyncRealmFBIsOpen)
|
| | | return sizeof(tagMCSyncRealmInfo)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// A3 11 通知玩家境界渡劫是否开启 //tagMCSyncRealmFBIsOpen:
|
| | | DumpString = '''// A3 11 通知玩家境界信息 //tagMCSyncRealmInfo:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | IsOpen:%d,
|
| | | SitAllTime:%d,
|
| | | SitRemainTime:%d,
|
| | | SitStartTime:%d,
|
| | | LastEnterTime:%d
|
| | | IsPass:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.IsOpen,
|
| | | self.SitAllTime,
|
| | | self.SitRemainTime,
|
| | | self.SitStartTime,
|
| | | self.LastEnterTime
|
| | | self.IsPass
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagMCSyncRealmFBIsOpen=tagMCSyncRealmFBIsOpen()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCSyncRealmFBIsOpen.Cmd,m_NAtagMCSyncRealmFBIsOpen.SubCmd))] = m_NAtagMCSyncRealmFBIsOpen
|
| | | m_NAtagMCSyncRealmInfo=tagMCSyncRealmInfo()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCSyncRealmInfo.Cmd,m_NAtagMCSyncRealmInfo.SubCmd))] = m_NAtagMCSyncRealmInfo
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|