| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # AE 05 镖车开始时间 #tagGCTruckStartTime
|
| | |
|
| | | class tagGCTruckStartTime(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("StartTime", c_int), |
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xAE
|
| | | self.SubCmd = 0x05
|
| | | 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 = 0xAE
|
| | | self.SubCmd = 0x05
|
| | | self.StartTime = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagGCTruckStartTime)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// AE 05 镖车开始时间 //tagGCTruckStartTime:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | StartTime:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.StartTime
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagGCTruckStartTime=tagGCTruckStartTime()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagGCTruckStartTime.Cmd,m_NAtagGCTruckStartTime.SubCmd))] = m_NAtagGCTruckStartTime
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B0 01 新增协助 #tagGCAssistInfoList
|
| | |
|
| | | class tagGCAssistInfo(Structure):
|
| | |
| | |
|
| | | m_NAtagMCDiceExResult=tagMCDiceExResult()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCDiceExResult.Cmd,m_NAtagMCDiceExResult.SubCmd))] = m_NAtagMCDiceExResult
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # AE 04 自动运镖状态#tagPyAutoTruckState
|
| | |
|
| | | class tagPyAutoTruckState(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("State", c_ubyte), |
| | | ("Result", c_ubyte), #成功/失败
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xAE
|
| | | self.SubCmd = 0x04
|
| | | 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 = 0xAE
|
| | | self.SubCmd = 0x04
|
| | | self.State = 0
|
| | | self.Result = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagPyAutoTruckState)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// AE 04 自动运镖状态//tagPyAutoTruckState:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | State:%d,
|
| | | Result:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.State,
|
| | | self.Result
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagPyAutoTruckState=tagPyAutoTruckState()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagPyAutoTruckState.Cmd,m_NAtagPyAutoTruckState.SubCmd))] = m_NAtagPyAutoTruckState
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # AE 01 可召唤镖车等级#tagPyCanSummonTruckLV
|
| | |
|
| | | class tagPyCanSummonTruckLV(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("TruckLV", c_ubyte), #镖车等级
|
| | | ("FreeCnt", c_ubyte), #当日已免费刷新次数
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xAE
|
| | | self.SubCmd = 0x01
|
| | | 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 = 0xAE
|
| | | self.SubCmd = 0x01
|
| | | self.TruckLV = 0
|
| | | self.FreeCnt = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagPyCanSummonTruckLV)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// AE 01 可召唤镖车等级//tagPyCanSummonTruckLV:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | TruckLV:%d,
|
| | | FreeCnt:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.TruckLV,
|
| | | self.FreeCnt
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagPyCanSummonTruckLV=tagPyCanSummonTruckLV()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagPyCanSummonTruckLV.Cmd,m_NAtagPyCanSummonTruckLV.SubCmd))] = m_NAtagPyCanSummonTruckLV
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # AE 02 劫镖次数#tagPyDestroyTruckCnt
|
| | |
|
| | | class tagPyDestroyTruckCnt(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("Count", c_ubyte), |
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xAE
|
| | | self.SubCmd = 0x02
|
| | | 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 = 0xAE
|
| | | self.SubCmd = 0x02
|
| | | self.Count = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagPyDestroyTruckCnt)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// AE 02 劫镖次数//tagPyDestroyTruckCnt:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | Count:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.Count
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagPyDestroyTruckCnt=tagPyDestroyTruckCnt()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagPyDestroyTruckCnt.Cmd,m_NAtagPyDestroyTruckCnt.SubCmd))] = m_NAtagPyDestroyTruckCnt
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # AE 06 运镖奖励 #tagMCTruckAward
|
| | |
|
| | | class tagMCTruckAward(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("AwardType", c_ubyte), # 奖励类型,0-运镖;1-劫镖
|
| | | ("Exp", c_int), |
| | | ("ExpPoint", c_int), |
| | | ("ZhenQi", c_int), |
| | | ("Prestige", c_int), |
| | | ("MoneyType", c_ubyte), |
| | | ("MoneyCnt", c_int), |
| | | ("IsDestroy", c_ubyte), # 是否被劫
|
| | | ("IsDouble", c_ubyte), # 是否双倍
|
| | | ("IsTimeOut", c_ubyte), # 是否超时
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xAE
|
| | | self.SubCmd = 0x06
|
| | | 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 = 0xAE
|
| | | self.SubCmd = 0x06
|
| | | self.AwardType = 0
|
| | | self.Exp = 0
|
| | | self.ExpPoint = 0
|
| | | self.ZhenQi = 0
|
| | | self.Prestige = 0
|
| | | self.MoneyType = 0
|
| | | self.MoneyCnt = 0
|
| | | self.IsDestroy = 0
|
| | | self.IsDouble = 0
|
| | | self.IsTimeOut = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagMCTruckAward)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// AE 06 运镖奖励 //tagMCTruckAward:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | AwardType:%d,
|
| | | Exp:%d,
|
| | | ExpPoint:%d,
|
| | | ZhenQi:%d,
|
| | | Prestige:%d,
|
| | | MoneyType:%d,
|
| | | MoneyCnt:%d,
|
| | | IsDestroy:%d,
|
| | | IsDouble:%d,
|
| | | IsTimeOut:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.AwardType,
|
| | | self.Exp,
|
| | | self.ExpPoint,
|
| | | self.ZhenQi,
|
| | | self.Prestige,
|
| | | self.MoneyType,
|
| | | self.MoneyCnt,
|
| | | self.IsDestroy,
|
| | | self.IsDouble,
|
| | | self.IsTimeOut
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagMCTruckAward=tagMCTruckAward()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCTruckAward.Cmd,m_NAtagMCTruckAward.SubCmd))] = m_NAtagMCTruckAward
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # AE 03 镖车状态模式#tagPyTruckMode
|
| | |
|
| | | class tagPyTruckMode(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("TruckMode", c_ubyte), |
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0xAE
|
| | | self.SubCmd = 0x03
|
| | | 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 = 0xAE
|
| | | self.SubCmd = 0x03
|
| | | self.TruckMode = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagPyTruckMode)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// AE 03 镖车状态模式//tagPyTruckMode:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | TruckMode:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.TruckMode
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagPyTruckMode=tagPyTruckMode()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagPyTruckMode.Cmd,m_NAtagPyTruckMode.SubCmd))] = m_NAtagPyTruckMode
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|