hxp
4 天以前 7bf88131759c20d54e175010d5b80da5d8148713
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
@@ -8863,130 +8863,6 @@
#------------------------------------------------------
# A3 49 资源找回次数 #tagMCRecoverNum
class  tagMCRecoverNumInfo(Structure):
    _pack_ = 1
    _fields_ = [
                  ("Index", c_ubyte),    # 找回项索引
                  ("RecoverCnt", c_ubyte),    # 可找回次数
                  ("ExtraCnt", c_ubyte),    # VIP额外次数
                  ("ExtraData", c_ubyte),    # 额外参数1
                  ("ExtraData2", c_ubyte),    # 额外参数2
                  ("HaveRecover", c_ubyte),    # 已找回 1-全部已找回 2-非VIP已找回
                  ]
    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.Index = 0
        self.RecoverCnt = 0
        self.ExtraCnt = 0
        self.ExtraData = 0
        self.ExtraData2 = 0
        self.HaveRecover = 0
        return
    def GetLength(self):
        return sizeof(tagMCRecoverNumInfo)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// A3 49 资源找回次数 //tagMCRecoverNum:
                                Index:%d,
                                RecoverCnt:%d,
                                ExtraCnt:%d,
                                ExtraData:%d,
                                ExtraData2:%d,
                                HaveRecover:%d
                                '''\
                                %(
                                self.Index,
                                self.RecoverCnt,
                                self.ExtraCnt,
                                self.ExtraData,
                                self.ExtraData2,
                                self.HaveRecover
                                )
        return DumpString
class  tagMCRecoverNum(Structure):
    Head = tagHead()
    Num = 0    #(BYTE Num)// 找回信息数
    NumInfo = list()    #(vector<tagMCRecoverNumInfo> NumInfo)// 找回信息列表
    data = None
    def __init__(self):
        self.Clear()
        self.Head.Cmd = 0xA3
        self.Head.SubCmd = 0x49
        return
    def ReadData(self, _lpData, _pos=0, _Len=0):
        self.Clear()
        _pos = self.Head.ReadData(_lpData, _pos)
        self.Num,_pos = CommFunc.ReadBYTE(_lpData, _pos)
        for i in range(self.Num):
            temNumInfo = tagMCRecoverNumInfo()
            _pos = temNumInfo.ReadData(_lpData, _pos)
            self.NumInfo.append(temNumInfo)
        return _pos
    def Clear(self):
        self.Head = tagHead()
        self.Head.Clear()
        self.Head.Cmd = 0xA3
        self.Head.SubCmd = 0x49
        self.Num = 0
        self.NumInfo = list()
        return
    def GetLength(self):
        length = 0
        length += self.Head.GetLength()
        length += 1
        for i in range(self.Num):
            length += self.NumInfo[i].GetLength()
        return length
    def GetBuffer(self):
        data = ''
        data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
        data = CommFunc.WriteBYTE(data, self.Num)
        for i in range(self.Num):
            data = CommFunc.WriteString(data, self.NumInfo[i].GetLength(), self.NumInfo[i].GetBuffer())
        return data
    def OutputString(self):
        DumpString = '''
                                Head:%s,
                                Num:%d,
                                NumInfo:%s
                                '''\
                                %(
                                self.Head.OutputString(),
                                self.Num,
                                "..."
                                )
        return DumpString
m_NAtagMCRecoverNum=tagMCRecoverNum()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCRecoverNum.Head.Cmd,m_NAtagMCRecoverNum.Head.SubCmd))] = m_NAtagMCRecoverNum
#------------------------------------------------------
# A3 1F 玩家符印信息 #tagMCRuneInfo
class  tagMCRuneInfo(Structure):
@@ -16135,114 +16011,6 @@
m_NAtagMCEmojiPackInfo=tagMCEmojiPackInfo()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCEmojiPackInfo.Head.Cmd,m_NAtagMCEmojiPackInfo.Head.SubCmd))] = m_NAtagMCEmojiPackInfo
#------------------------------------------------------
# A7 03 通知进入副本时间 #tagMCFBEnterTickList
class  tagMCFBEnterTick(Structure):
    _pack_ = 1
    _fields_ = [
                  ("MapID", c_int),    # 副本地图id
                  ("LastEnterTick", 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.MapID = 0
        self.LastEnterTick = 0
        return
    def GetLength(self):
        return sizeof(tagMCFBEnterTick)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// A7 03 通知进入副本时间 //tagMCFBEnterTickList:
                                MapID:%d,
                                LastEnterTick:%d
                                '''\
                                %(
                                self.MapID,
                                self.LastEnterTick
                                )
        return DumpString
class  tagMCFBEnterTickList(Structure):
    Head = tagHead()
    Cnt = 0    #(BYTE Cnt)// 信息个数
    EnterTickList = list()    #(vector<tagMCFBEnterTick> EnterTickList)// 信息列表
    data = None
    def __init__(self):
        self.Clear()
        self.Head.Cmd = 0xA7
        self.Head.SubCmd = 0x03
        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):
            temEnterTickList = tagMCFBEnterTick()
            _pos = temEnterTickList.ReadData(_lpData, _pos)
            self.EnterTickList.append(temEnterTickList)
        return _pos
    def Clear(self):
        self.Head = tagHead()
        self.Head.Clear()
        self.Head.Cmd = 0xA7
        self.Head.SubCmd = 0x03
        self.Cnt = 0
        self.EnterTickList = list()
        return
    def GetLength(self):
        length = 0
        length += self.Head.GetLength()
        length += 1
        for i in range(self.Cnt):
            length += self.EnterTickList[i].GetLength()
        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.WriteString(data, self.EnterTickList[i].GetLength(), self.EnterTickList[i].GetBuffer())
        return data
    def OutputString(self):
        DumpString = '''
                                Head:%s,
                                Cnt:%d,
                                EnterTickList:%s
                                '''\
                                %(
                                self.Head.OutputString(),
                                self.Cnt,
                                "..."
                                )
        return DumpString
m_NAtagMCFBEnterTickList=tagMCFBEnterTickList()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCFBEnterTickList.Head.Cmd,m_NAtagMCFBEnterTickList.Head.SubCmd))] = m_NAtagMCFBEnterTickList
#------------------------------------------------------
@@ -39062,118 +38830,6 @@
#------------------------------------------------------
# B2 09 副本次数恢复剩余时间 #tagMCFBCntRegainRemainTime
class  tagMCFBCntRegain(Structure):
    _pack_ = 1
    _fields_ = [
                  ("DataMapID", c_int),    # 地图ID
                  ("RemainTime", c_int),    # 剩余时间秒
                  ("RegainCnt", c_ubyte),    # 今日已恢复次数
                  ]
    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.DataMapID = 0
        self.RemainTime = 0
        self.RegainCnt = 0
        return
    def GetLength(self):
        return sizeof(tagMCFBCntRegain)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// B2 09 副本次数恢复剩余时间 //tagMCFBCntRegainRemainTime:
                                DataMapID:%d,
                                RemainTime:%d,
                                RegainCnt:%d
                                '''\
                                %(
                                self.DataMapID,
                                self.RemainTime,
                                self.RegainCnt
                                )
        return DumpString
class  tagMCFBCntRegainRemainTime(Structure):
    Head = tagHead()
    Cnt = 0    #(BYTE Cnt)// 信息数
    InfoList = list()    #(vector<tagMCFBCntRegain> InfoList)// 信息列表
    data = None
    def __init__(self):
        self.Clear()
        self.Head.Cmd = 0xB2
        self.Head.SubCmd = 0x09
        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):
            temInfoList = tagMCFBCntRegain()
            _pos = temInfoList.ReadData(_lpData, _pos)
            self.InfoList.append(temInfoList)
        return _pos
    def Clear(self):
        self.Head = tagHead()
        self.Head.Clear()
        self.Head.Cmd = 0xB2
        self.Head.SubCmd = 0x09
        self.Cnt = 0
        self.InfoList = list()
        return
    def GetLength(self):
        length = 0
        length += self.Head.GetLength()
        length += 1
        for i in range(self.Cnt):
            length += self.InfoList[i].GetLength()
        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.WriteString(data, self.InfoList[i].GetLength(), self.InfoList[i].GetBuffer())
        return data
    def OutputString(self):
        DumpString = '''
                                Head:%s,
                                Cnt:%d,
                                InfoList:%s
                                '''\
                                %(
                                self.Head.OutputString(),
                                self.Cnt,
                                "..."
                                )
        return DumpString
m_NAtagMCFBCntRegainRemainTime=tagMCFBCntRegainRemainTime()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCFBCntRegainRemainTime.Head.Cmd,m_NAtagMCFBCntRegainRemainTime.Head.SubCmd))] = m_NAtagMCFBCntRegainRemainTime
#------------------------------------------------------
# B2 01 通知封魔坛双倍击杀状态 #tagMCFMTDoubleState
class  tagMCFMTDoubleState(Structure):
@@ -39227,196 +38883,6 @@
m_NAtagMCFMTDoubleState=tagMCFMTDoubleState()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCFMTDoubleState.Cmd,m_NAtagMCFMTDoubleState.SubCmd))] = m_NAtagMCFMTDoubleState
#------------------------------------------------------
# B2 03 公共副本扫荡信息 #tagMCPubFBSweepData
class  tagMCPubFBSweep(Structure):
    _pack_ = 1
    _fields_ = [
                  ("Cmd", c_ubyte),
                  ("SubCmd", c_ubyte),
                  ("PubNum", c_ubyte),    # 公共组编号
                  ("FBMapID", c_int),    # 当前扫荡的副本地图ID
                  ("LineID", c_ushort),    # lineID
                  ("SweepTime", c_int),    # 开始扫荡的时间
                  ("SweepCnt", c_ubyte),    # 扫荡次数
                  ]
    def __init__(self):
        self.Clear()
        self.Cmd = 0xB2
        self.SubCmd = 0x03
        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 = 0xB2
        self.SubCmd = 0x03
        self.PubNum = 0
        self.FBMapID = 0
        self.LineID = 0
        self.SweepTime = 0
        self.SweepCnt = 0
        return
    def GetLength(self):
        return sizeof(tagMCPubFBSweep)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// B2 03 公共副本扫荡信息 //tagMCPubFBSweepData:
                                Cmd:%s,
                                SubCmd:%s,
                                PubNum:%d,
                                FBMapID:%d,
                                LineID:%d,
                                SweepTime:%d,
                                SweepCnt:%d
                                '''\
                                %(
                                self.Cmd,
                                self.SubCmd,
                                self.PubNum,
                                self.FBMapID,
                                self.LineID,
                                self.SweepTime,
                                self.SweepCnt
                                )
        return DumpString
class  tagMCPubFBSweepData(Structure):
    Head = tagHead()
    Cnt = 0    #(BYTE Cnt)// 信息数
    SweepDatList = list()    #(vector<tagMCPubFBSweep> SweepDatList)// 信息列表
    data = None
    def __init__(self):
        self.Clear()
        self.Head.Cmd = 0xB2
        self.Head.SubCmd = 0x03
        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):
            temSweepDatList = tagMCPubFBSweep()
            _pos = temSweepDatList.ReadData(_lpData, _pos)
            self.SweepDatList.append(temSweepDatList)
        return _pos
    def Clear(self):
        self.Head = tagHead()
        self.Head.Clear()
        self.Head.Cmd = 0xB2
        self.Head.SubCmd = 0x03
        self.Cnt = 0
        self.SweepDatList = list()
        return
    def GetLength(self):
        length = 0
        length += self.Head.GetLength()
        length += 1
        for i in range(self.Cnt):
            length += self.SweepDatList[i].GetLength()
        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.WriteString(data, self.SweepDatList[i].GetLength(), self.SweepDatList[i].GetBuffer())
        return data
    def OutputString(self):
        DumpString = '''
                                Head:%s,
                                Cnt:%d,
                                SweepDatList:%s
                                '''\
                                %(
                                self.Head.OutputString(),
                                self.Cnt,
                                "..."
                                )
        return DumpString
m_NAtagMCPubFBSweepData=tagMCPubFBSweepData()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCPubFBSweepData.Head.Cmd,m_NAtagMCPubFBSweepData.Head.SubCmd))] = m_NAtagMCPubFBSweepData
#------------------------------------------------------
# B2 16 开始自定义场景结果 #tagMCStartCustomSceneResult
class  tagMCStartCustomSceneResult(Structure):
    _pack_ = 1
    _fields_ = [
                  ("Cmd", c_ubyte),
                  ("SubCmd", c_ubyte),
                  ("MapID", c_int),
                  ("FuncLineID", c_ushort),
                  ("Result", c_ubyte),    #是否允许
                  ]
    def __init__(self):
        self.Clear()
        self.Cmd = 0xB2
        self.SubCmd = 0x16
        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 = 0xB2
        self.SubCmd = 0x16
        self.MapID = 0
        self.FuncLineID = 0
        self.Result = 0
        return
    def GetLength(self):
        return sizeof(tagMCStartCustomSceneResult)
    def GetBuffer(self):
        return string_at(addressof(self), self.GetLength())
    def OutputString(self):
        DumpString = '''// B2 16 开始自定义场景结果 //tagMCStartCustomSceneResult:
                                Cmd:%s,
                                SubCmd:%s,
                                MapID:%d,
                                FuncLineID:%d,
                                Result:%d
                                '''\
                                %(
                                self.Cmd,
                                self.SubCmd,
                                self.MapID,
                                self.FuncLineID,
                                self.Result
                                )
        return DumpString
m_NAtagMCStartCustomSceneResult=tagMCStartCustomSceneResult()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCStartCustomSceneResult.Cmd,m_NAtagMCStartCustomSceneResult.SubCmd))] = m_NAtagMCStartCustomSceneResult
#------------------------------------------------------