ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
@@ -56484,6 +56484,66 @@
#------------------------------------------------------
# B1 21 仙树信息 #tagMCTreeInfo
class  tagMCTreeInfo(Structure):
    _pack_ = 1
    _fields_ = [
                  ("Cmd", c_ubyte),
                  ("SubCmd", c_ubyte),
                  ("TreeLV", c_ubyte),    # 当前仙树等级
                  ("LVUPState", c_ubyte),    # 0-非升级中;1-升级中
                  ("LVUPRemainTime", c_int),    # 升级剩余时间,秒;当升级中且倒计时为0时可发送B223执行升级包进行升级
                  ]
    def __init__(self):
        self.Clear()
        self.Cmd = 0xB1
        self.SubCmd = 0x21
        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 = 0xB1
        self.SubCmd = 0x21
        self.TreeLV = 0
        self.LVUPState = 0
        self.LVUPRemainTime = 0
        return
    def GetLength(self):
        return sizeof(tagMCTreeInfo)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// B1 21 仙树信息 //tagMCTreeInfo:
                                Cmd:%s,
                                SubCmd:%s,
                                TreeLV:%d,
                                LVUPState:%d,
                                LVUPRemainTime:%d
                                '''\
                                %(
                                self.Cmd,
                                self.SubCmd,
                                self.TreeLV,
                                self.LVUPState,
                                self.LVUPRemainTime
                                )
        return DumpString
m_NAtagMCTreeInfo=tagMCTreeInfo()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCTreeInfo.Cmd,m_NAtagMCTreeInfo.SubCmd))] = m_NAtagMCTreeInfo
#------------------------------------------------------
# B1 16 累计消耗货币信息 #tagMCUseMoneyTotalInfo
class  tagMCUseMoneyTotal(Structure):