ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
@@ -3873,122 +3873,6 @@
#------------------------------------------------------
# A3 39 玩家属性果实已使用个数信息#tagMCAttrFruitEatCntList
class  tagMCAttrFruitEatCnt(Structure):
    _pack_ = 1
    _fields_ = [
                  ("ItemID", c_int),    #果实物品ID
                  ("EatCnt", c_int),    #已使用个数
                  ("ItemAddCnt", c_int),    #增幅丹增加上限
                  ("ItemBreakCnt", 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.ItemID = 0
        self.EatCnt = 0
        self.ItemAddCnt = 0
        self.ItemBreakCnt = 0
        return
    def GetLength(self):
        return sizeof(tagMCAttrFruitEatCnt)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// A3 39 玩家属性果实已使用个数信息//tagMCAttrFruitEatCntList:
                                ItemID:%d,
                                EatCnt:%d,
                                ItemAddCnt:%d,
                                ItemBreakCnt:%d
                                '''\
                                %(
                                self.ItemID,
                                self.EatCnt,
                                self.ItemAddCnt,
                                self.ItemBreakCnt
                                )
        return DumpString
class  tagMCAttrFruitEatCntList(Structure):
    Head = tagHead()
    count = 0    #(BYTE count)//信息个数
    EatCntList = list()    #(vector<tagMCAttrFruitEatCnt> EatCntList)
    data = None
    def __init__(self):
        self.Clear()
        self.Head.Cmd = 0xA3
        self.Head.SubCmd = 0x39
        return
    def ReadData(self, _lpData, _pos=0, _Len=0):
        self.Clear()
        _pos = self.Head.ReadData(_lpData, _pos)
        self.count,_pos = CommFunc.ReadBYTE(_lpData, _pos)
        for i in range(self.count):
            temEatCntList = tagMCAttrFruitEatCnt()
            _pos = temEatCntList.ReadData(_lpData, _pos)
            self.EatCntList.append(temEatCntList)
        return _pos
    def Clear(self):
        self.Head = tagHead()
        self.Head.Clear()
        self.Head.Cmd = 0xA3
        self.Head.SubCmd = 0x39
        self.count = 0
        self.EatCntList = list()
        return
    def GetLength(self):
        length = 0
        length += self.Head.GetLength()
        length += 1
        for i in range(self.count):
            length += self.EatCntList[i].GetLength()
        return length
    def GetBuffer(self):
        data = ''
        data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
        data = CommFunc.WriteBYTE(data, self.count)
        for i in range(self.count):
            data = CommFunc.WriteString(data, self.EatCntList[i].GetLength(), self.EatCntList[i].GetBuffer())
        return data
    def OutputString(self):
        DumpString = '''
                                Head:%s,
                                count:%d,
                                EatCntList:%s
                                '''\
                                %(
                                self.Head.OutputString(),
                                self.count,
                                "..."
                                )
        return DumpString
m_NAtagMCAttrFruitEatCntList=tagMCAttrFruitEatCntList()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCAttrFruitEatCntList.Head.Cmd,m_NAtagMCAttrFruitEatCntList.Head.SubCmd))] = m_NAtagMCAttrFruitEatCntList
#------------------------------------------------------
#A3 B7 当日累计攻击boss次数 #tagMCBOSSAttactCnt
class  tagMCBossCntInfo(Structure):
@@ -43549,6 +43433,114 @@
#------------------------------------------------------
# B1 23 每日掉落战利品信息 #tagSCDropBootyInfo
class  tagSCDropBooty(Structure):
    _pack_ = 1
    _fields_ = [
                  ("ItemID", c_int),    # 战利品ID
                  ("TodayDropCnt", 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.ItemID = 0
        self.TodayDropCnt = 0
        return
    def GetLength(self):
        return sizeof(tagSCDropBooty)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// B1 23 每日掉落战利品信息 //tagSCDropBootyInfo:
                                ItemID:%d,
                                TodayDropCnt:%d
                                '''\
                                %(
                                self.ItemID,
                                self.TodayDropCnt
                                )
        return DumpString
class  tagSCDropBootyInfo(Structure):
    Head = tagHead()
    Count = 0    #(WORD Count)
    DropBootyList = list()    #(vector<tagSCDropBooty> DropBootyList)//每日已掉落战利品信息列表
    data = None
    def __init__(self):
        self.Clear()
        self.Head.Cmd = 0xB1
        self.Head.SubCmd = 0x23
        return
    def ReadData(self, _lpData, _pos=0, _Len=0):
        self.Clear()
        _pos = self.Head.ReadData(_lpData, _pos)
        self.Count,_pos = CommFunc.ReadWORD(_lpData, _pos)
        for i in range(self.Count):
            temDropBootyList = tagSCDropBooty()
            _pos = temDropBootyList.ReadData(_lpData, _pos)
            self.DropBootyList.append(temDropBootyList)
        return _pos
    def Clear(self):
        self.Head = tagHead()
        self.Head.Clear()
        self.Head.Cmd = 0xB1
        self.Head.SubCmd = 0x23
        self.Count = 0
        self.DropBootyList = list()
        return
    def GetLength(self):
        length = 0
        length += self.Head.GetLength()
        length += 2
        for i in range(self.Count):
            length += self.DropBootyList[i].GetLength()
        return length
    def GetBuffer(self):
        data = ''
        data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
        data = CommFunc.WriteWORD(data, self.Count)
        for i in range(self.Count):
            data = CommFunc.WriteString(data, self.DropBootyList[i].GetLength(), self.DropBootyList[i].GetBuffer())
        return data
    def OutputString(self):
        DumpString = '''
                                Head:%s,
                                Count:%d,
                                DropBootyList:%s
                                '''\
                                %(
                                self.Head.OutputString(),
                                self.Count,
                                "..."
                                )
        return DumpString
m_NAtagSCDropBootyInfo=tagSCDropBootyInfo()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagSCDropBootyInfo.Head.Cmd,m_NAtagSCDropBootyInfo.Head.SubCmd))] = m_NAtagSCDropBootyInfo
#------------------------------------------------------
# B1 17 头像信息 #tagMCFaceInfo
class  tagMCFace(Structure):
@@ -46528,94 +46520,6 @@
m_NAtagMCHelpBattleRecordList=tagMCHelpBattleRecordList()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCHelpBattleRecordList.Head.Cmd,m_NAtagMCHelpBattleRecordList.Head.SubCmd))] = m_NAtagMCHelpBattleRecordList
#------------------------------------------------------
# B2 04 冰晶矿脉信息通知 #tagMCIceLodeInfo
class  tagMCIceLodeInfo(Structure):
    Head = tagHead()
    Cnt = 0    #(BYTE Cnt)// 今日玩法数量
    LineList = list()    #(vector<BYTE> LineList)// 玩法列表
    AwardRecord = 0    #(DWORD AwardRecord)// 领奖记录
    HasSweep = 0    #(BYTE HasSweep)// 是否已扫荡
    DayLV = 0    #(WORD DayLV)// 今日等级
    data = None
    def __init__(self):
        self.Clear()
        self.Head.Cmd = 0xB2
        self.Head.SubCmd = 0x04
        return
    def ReadData(self, _lpData, _pos=0, _Len=0):
        self.Clear()
        _pos = self.Head.ReadData(_lpData, _pos)
        self.Cnt,_pos = CommFunc.ReadBYTE(_lpData, _pos)
        for i in range(self.Cnt):
            value,_pos=CommFunc.ReadBYTE(_lpData,_pos)
            self.LineList.append(value)
        self.AwardRecord,_pos = CommFunc.ReadDWORD(_lpData, _pos)
        self.HasSweep,_pos = CommFunc.ReadBYTE(_lpData, _pos)
        self.DayLV,_pos = CommFunc.ReadWORD(_lpData, _pos)
        return _pos
    def Clear(self):
        self.Head = tagHead()
        self.Head.Clear()
        self.Head.Cmd = 0xB2
        self.Head.SubCmd = 0x04
        self.Cnt = 0
        self.LineList = list()
        self.AwardRecord = 0
        self.HasSweep = 0
        self.DayLV = 0
        return
    def GetLength(self):
        length = 0
        length += self.Head.GetLength()
        length += 1
        length += 1 * self.Cnt
        length += 4
        length += 1
        length += 2
        return length
    def GetBuffer(self):
        data = ''
        data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
        data = CommFunc.WriteBYTE(data, self.Cnt)
        for i in range(self.Cnt):
            data = CommFunc.WriteBYTE(data, self.LineList[i])
        data = CommFunc.WriteDWORD(data, self.AwardRecord)
        data = CommFunc.WriteBYTE(data, self.HasSweep)
        data = CommFunc.WriteWORD(data, self.DayLV)
        return data
    def OutputString(self):
        DumpString = '''
                                Head:%s,
                                Cnt:%d,
                                LineList:%s,
                                AwardRecord:%d,
                                HasSweep:%d,
                                DayLV:%d
                                '''\
                                %(
                                self.Head.OutputString(),
                                self.Cnt,
                                "...",
                                self.AwardRecord,
                                self.HasSweep,
                                self.DayLV
                                )
        return DumpString
m_NAtagMCIceLodeInfo=tagMCIceLodeInfo()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCIceLodeInfo.Head.Cmd,m_NAtagMCIceLodeInfo.Head.SubCmd))] = m_NAtagMCIceLodeInfo
#------------------------------------------------------