hxp
2026-01-13 09c67573ee3759802de4d40ea70813d2ce71be0c
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
@@ -31772,6 +31772,66 @@
#------------------------------------------------------
# B1 32 命格信息 #tagSCMinggeInfo
class  tagSCMinggeInfo(Structure):
    _pack_ = 1
    _fields_ = [
                  ("Cmd", c_ubyte),
                  ("SubCmd", c_ubyte),
                  ("GanwuLV", c_ushort),    #感悟等级,从1开始
                  ("GanwuExp", c_int),    #当前感悟等级经验,每级从0开始
                  ("Lingying", c_int),    #当前灵应值
                  ]
    def __init__(self):
        self.Clear()
        self.Cmd = 0xB1
        self.SubCmd = 0x32
        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 = 0x32
        self.GanwuLV = 0
        self.GanwuExp = 0
        self.Lingying = 0
        return
    def GetLength(self):
        return sizeof(tagSCMinggeInfo)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// B1 32 命格信息 //tagSCMinggeInfo:
                                Cmd:%s,
                                SubCmd:%s,
                                GanwuLV:%d,
                                GanwuExp:%d,
                                Lingying:%d
                                '''\
                                %(
                                self.Cmd,
                                self.SubCmd,
                                self.GanwuLV,
                                self.GanwuExp,
                                self.Lingying
                                )
        return DumpString
m_NAtagSCMinggeInfo=tagSCMinggeInfo()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagSCMinggeInfo.Cmd,m_NAtagSCMinggeInfo.SubCmd))] = m_NAtagSCMinggeInfo
#------------------------------------------------------
# B1 19 形象信息 #tagSCModelInfo
class  tagSCModel(Structure):