| | |
| | | m_NAtagUseSkillPos=tagUseSkillPos()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagUseSkillPos.Head.Cmd,m_NAtagUseSkillPos.Head.SubCmd))] = m_NAtagUseSkillPos
|
| | |
|
| | | #06 12 根据类型清空对象的buff#tagClearObjBuff
|
| | |
|
| | | class tagClearObjBuff(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("Cmd", c_ubyte),
|
| | | ("SubCmd", c_ubyte),
|
| | | ("ObjType", c_ubyte), |
| | | ("ObjID", c_int), |
| | | ("BuffType", c_ubyte), #buff类型
|
| | | ]
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Cmd = 0x06
|
| | | self.SubCmd = 0x12
|
| | | 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 = 0x06
|
| | | self.SubCmd = 0x12
|
| | | self.ObjType = 0
|
| | | self.ObjID = 0
|
| | | self.BuffType = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagClearObjBuff)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''//06 12 根据类型清空对象的buff//tagClearObjBuff:
|
| | | Cmd:%s,
|
| | | SubCmd:%s,
|
| | | ObjType:%d,
|
| | | ObjID:%d,
|
| | | BuffType:%d
|
| | | '''\
|
| | | %(
|
| | | self.Cmd,
|
| | | self.SubCmd,
|
| | | self.ObjType,
|
| | | self.ObjID,
|
| | | self.BuffType
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagClearObjBuff=tagClearObjBuff()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagClearObjBuff.Cmd,m_NAtagClearObjBuff.SubCmd))] = m_NAtagClearObjBuff
|
| | |
|
| | | #06 05 对象增加Buf#tagObjAddBuff
|
| | |
|
| | | class tagObjAddBuff(Structure):
|