hxp
2025-10-22 48fe7ceb396576b1d87745c426921586b9eb721d
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
@@ -5527,118 +5527,6 @@
#------------------------------------------------------
# A3 1D 神兵等级信息 #tagMCGodWeaponLVList
class  tagMCGodWeaponLVInfo(Structure):
    _pack_ = 1
    _fields_ = [
                  ("WeaponType", c_ubyte),    #神兵类型
                  ("WeaponLV", c_ushort),    #神兵等级
                  ("WeaponExp", c_int),    #当前神兵经验
                  ]
    def __init__(self):
        self.Clear()
        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.WeaponType = 0
        self.WeaponLV = 0
        self.WeaponExp = 0
        return
    def GetLength(self):
        return sizeof(tagMCGodWeaponLVInfo)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// A3 1D 神兵等级信息 //tagMCGodWeaponLVList:
                                WeaponType:%d,
                                WeaponLV:%d,
                                WeaponExp:%d
                                '''\
                                %(
                                self.WeaponType,
                                self.WeaponLV,
                                self.WeaponExp
                                )
        return DumpString
class  tagMCGodWeaponLVList(Structure):
    Head = tagHead()
    WeaponNum = 0    #(BYTE WeaponNum)//神器个数
    WeaponInfoList = list()    #(vector<tagMCGodWeaponLVInfo> WeaponInfoList)// 副本数据列表
    data = None
    def __init__(self):
        self.Clear()
        self.Head.Cmd = 0xA3
        self.Head.SubCmd = 0x1D
        return
    def ReadData(self, _lpData, _pos=0, _Len=0):
        self.Clear()
        _pos = self.Head.ReadData(_lpData, _pos)
        self.WeaponNum,_pos = CommFunc.ReadBYTE(_lpData, _pos)
        for i in range(self.WeaponNum):
            temWeaponInfoList = tagMCGodWeaponLVInfo()
            _pos = temWeaponInfoList.ReadData(_lpData, _pos)
            self.WeaponInfoList.append(temWeaponInfoList)
        return _pos
    def Clear(self):
        self.Head = tagHead()
        self.Head.Clear()
        self.Head.Cmd = 0xA3
        self.Head.SubCmd = 0x1D
        self.WeaponNum = 0
        self.WeaponInfoList = list()
        return
    def GetLength(self):
        length = 0
        length += self.Head.GetLength()
        length += 1
        for i in range(self.WeaponNum):
            length += self.WeaponInfoList[i].GetLength()
        return length
    def GetBuffer(self):
        data = ''
        data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
        data = CommFunc.WriteBYTE(data, self.WeaponNum)
        for i in range(self.WeaponNum):
            data = CommFunc.WriteString(data, self.WeaponInfoList[i].GetLength(), self.WeaponInfoList[i].GetBuffer())
        return data
    def OutputString(self):
        DumpString = '''
                                Head:%s,
                                WeaponNum:%d,
                                WeaponInfoList:%s
                                '''\
                                %(
                                self.Head.OutputString(),
                                self.WeaponNum,
                                "..."
                                )
        return DumpString
m_NAtagMCGodWeaponLVList=tagMCGodWeaponLVList()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCGodWeaponLVList.Head.Cmd,m_NAtagMCGodWeaponLVList.Head.SubCmd))] = m_NAtagMCGodWeaponLVList
#------------------------------------------------------
# A3 37 投资理财信息 #tagMCGoldInvestInfo
class  tagMCInvestReward(Structure):
@@ -7539,58 +7427,6 @@
m_NAtagMCNPCIDCollectionCntInfo=tagMCNPCIDCollectionCntInfo()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCNPCIDCollectionCntInfo.Head.Cmd,m_NAtagMCNPCIDCollectionCntInfo.Head.SubCmd))] = m_NAtagMCNPCIDCollectionCntInfo
#------------------------------------------------------
# A3 19 分包下载奖励记录 #tagMCPackDownloadRecord
class  tagMCPackDownloadRecord(Structure):
    _pack_ = 1
    _fields_ = [
                  ("Cmd", c_ubyte),
                  ("SubCmd", c_ubyte),
                  ("Record", c_ubyte),    #0-未领取 1-已领取
                  ]
    def __init__(self):
        self.Clear()
        self.Cmd = 0xA3
        self.SubCmd = 0x19
        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 = 0xA3
        self.SubCmd = 0x19
        self.Record = 0
        return
    def GetLength(self):
        return sizeof(tagMCPackDownloadRecord)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// A3 19 分包下载奖励记录 //tagMCPackDownloadRecord:
                                Cmd:%s,
                                SubCmd:%s,
                                Record:%d
                                '''\
                                %(
                                self.Cmd,
                                self.SubCmd,
                                self.Record
                                )
        return DumpString
m_NAtagMCPackDownloadRecord=tagMCPackDownloadRecord()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCPackDownloadRecord.Cmd,m_NAtagMCPackDownloadRecord.SubCmd))] = m_NAtagMCPackDownloadRecord
#------------------------------------------------------