| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B1 63 战斗预设切换信息 #tagSCBatPresetSwitchInfo
|
| | |
|
| | | class tagSCBatPresetSwitch(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("BatPresetType", c_ubyte), #战斗预设类型:1-主线战斗;2-演武场防守;
|
| | | ("BatPresetID", c_ubyte), #该战斗功能所使用的战斗预设ID
|
| | | ]
|
| | |
|
| | | 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.BatPresetType = 0
|
| | | self.BatPresetID = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagSCBatPresetSwitch)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// B1 63 战斗预设切换信息 //tagSCBatPresetSwitchInfo:
|
| | | BatPresetType:%d,
|
| | | BatPresetID:%d
|
| | | '''\
|
| | | %(
|
| | | self.BatPresetType,
|
| | | self.BatPresetID
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | class tagSCBatPresetSwitchInfo(Structure):
|
| | | Head = tagHead()
|
| | | BatFuncCnt = 0 #(BYTE BatFuncCnt)
|
| | | BatPresetList = list() #(vector<tagSCBatPresetSwitch> BatPresetList)
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Head.Cmd = 0xB1
|
| | | self.Head.SubCmd = 0x63
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | _pos = self.Head.ReadData(_lpData, _pos)
|
| | | self.BatFuncCnt,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.BatFuncCnt):
|
| | | temBatPresetList = tagSCBatPresetSwitch()
|
| | | _pos = temBatPresetList.ReadData(_lpData, _pos)
|
| | | self.BatPresetList.append(temBatPresetList)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.Head = tagHead()
|
| | | self.Head.Clear()
|
| | | self.Head.Cmd = 0xB1
|
| | | self.Head.SubCmd = 0x63
|
| | | self.BatFuncCnt = 0
|
| | | self.BatPresetList = list()
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += self.Head.GetLength()
|
| | | length += 1
|
| | | for i in range(self.BatFuncCnt):
|
| | | length += self.BatPresetList[i].GetLength()
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
|
| | | data = CommFunc.WriteBYTE(data, self.BatFuncCnt)
|
| | | for i in range(self.BatFuncCnt):
|
| | | data = CommFunc.WriteString(data, self.BatPresetList[i].GetLength(), self.BatPresetList[i].GetBuffer())
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | Head:%s,
|
| | | BatFuncCnt:%d,
|
| | | BatPresetList:%s
|
| | | '''\
|
| | | %(
|
| | | self.Head.OutputString(),
|
| | | self.BatFuncCnt,
|
| | | "..."
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagSCBatPresetSwitchInfo=tagSCBatPresetSwitchInfo()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagSCBatPresetSwitchInfo.Head.Cmd,m_NAtagSCBatPresetSwitchInfo.Head.SubCmd))] = m_NAtagSCBatPresetSwitchInfo
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B1 30 红颜信息 #tagSCBeautyInfo
|
| | |
|
| | | class tagSCBeautySkin(Structure):
|
| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B1 61 功能预设信息 #tagSCFuncPresetInfoList
|
| | |
|
| | | class tagSCFuncPreset(Structure):
|
| | | PresetID = 0 #(BYTE PresetID)//预设方案ID
|
| | | NameLen = 0 #(BYTE NameLen)
|
| | | PresetName = "" #(String PresetName)//预设名称
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | self.PresetID,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.NameLen,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.PresetName,_pos = CommFunc.ReadString(_lpData, _pos,self.NameLen)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.PresetID = 0
|
| | | self.NameLen = 0
|
| | | self.PresetName = ""
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += 1
|
| | | length += 1
|
| | | length += len(self.PresetName)
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteBYTE(data, self.PresetID)
|
| | | data = CommFunc.WriteBYTE(data, self.NameLen)
|
| | | data = CommFunc.WriteString(data, self.NameLen, self.PresetName)
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | PresetID:%d,
|
| | | NameLen:%d,
|
| | | PresetName:%s
|
| | | '''\
|
| | | %(
|
| | | self.PresetID,
|
| | | self.NameLen,
|
| | | self.PresetName
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | class tagSCFuncPresetInfo(Structure):
|
| | | FuncPresetType = 0 #(BYTE FuncPresetType)//预设类型,1-全局战斗;2-阵容;3-命格;
|
| | | UnlockState = 0 #(DWORD UnlockState)//该功能预设解锁状态,按预设ID二进制位运算记录是否已解锁
|
| | | PresetCnt = 0 #(BYTE PresetCnt)
|
| | | PresetList = list() #(vector<tagSCFuncPreset> PresetList)//本功能下预设列表
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | self.FuncPresetType,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.UnlockState,_pos = CommFunc.ReadDWORD(_lpData, _pos)
|
| | | self.PresetCnt,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.PresetCnt):
|
| | | temPresetList = tagSCFuncPreset()
|
| | | _pos = temPresetList.ReadData(_lpData, _pos)
|
| | | self.PresetList.append(temPresetList)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.FuncPresetType = 0
|
| | | self.UnlockState = 0
|
| | | self.PresetCnt = 0
|
| | | self.PresetList = list()
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += 1
|
| | | length += 4
|
| | | length += 1
|
| | | for i in range(self.PresetCnt):
|
| | | length += self.PresetList[i].GetLength()
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteBYTE(data, self.FuncPresetType)
|
| | | data = CommFunc.WriteDWORD(data, self.UnlockState)
|
| | | data = CommFunc.WriteBYTE(data, self.PresetCnt)
|
| | | for i in range(self.PresetCnt):
|
| | | data = CommFunc.WriteString(data, self.PresetList[i].GetLength(), self.PresetList[i].GetBuffer())
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | FuncPresetType:%d,
|
| | | UnlockState:%d,
|
| | | PresetCnt:%d,
|
| | | PresetList:%s
|
| | | '''\
|
| | | %(
|
| | | self.FuncPresetType,
|
| | | self.UnlockState,
|
| | | self.PresetCnt,
|
| | | "..."
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | class tagSCFuncPresetInfoList(Structure):
|
| | | Head = tagHead()
|
| | | FuncCnt = 0 #(BYTE FuncCnt)
|
| | | FuncPresetList = list() #(vector<tagSCFuncPresetInfo> FuncPresetList)
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Head.Cmd = 0xB1
|
| | | self.Head.SubCmd = 0x61
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | _pos = self.Head.ReadData(_lpData, _pos)
|
| | | self.FuncCnt,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.FuncCnt):
|
| | | temFuncPresetList = tagSCFuncPresetInfo()
|
| | | _pos = temFuncPresetList.ReadData(_lpData, _pos)
|
| | | self.FuncPresetList.append(temFuncPresetList)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.Head = tagHead()
|
| | | self.Head.Clear()
|
| | | self.Head.Cmd = 0xB1
|
| | | self.Head.SubCmd = 0x61
|
| | | self.FuncCnt = 0
|
| | | self.FuncPresetList = list()
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += self.Head.GetLength()
|
| | | length += 1
|
| | | for i in range(self.FuncCnt):
|
| | | length += self.FuncPresetList[i].GetLength()
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
|
| | | data = CommFunc.WriteBYTE(data, self.FuncCnt)
|
| | | for i in range(self.FuncCnt):
|
| | | data = CommFunc.WriteString(data, self.FuncPresetList[i].GetLength(), self.FuncPresetList[i].GetBuffer())
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | Head:%s,
|
| | | FuncCnt:%d,
|
| | | FuncPresetList:%s
|
| | | '''\
|
| | | %(
|
| | | self.Head.OutputString(),
|
| | | self.FuncCnt,
|
| | | "..."
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagSCFuncPresetInfoList=tagSCFuncPresetInfoList()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagSCFuncPresetInfoList.Head.Cmd,m_NAtagSCFuncPresetInfoList.Head.SubCmd))] = m_NAtagSCFuncPresetInfoList
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B1 62 功能预设切换信息 #tagSCFuncPresetSwitchInfo
|
| | |
|
| | | class tagSCFuncPresetFunc(Structure):
|
| | | _pack_ = 1
|
| | | _fields_ = [
|
| | | ("FuncPresetType", c_ubyte), #预设类型,2-阵容;3-命格;
|
| | | ("FuncPresetID", c_ubyte), #该全局战斗预设下本功能使用的预设ID
|
| | | ]
|
| | |
|
| | | 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.FuncPresetType = 0
|
| | | self.FuncPresetID = 0
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | return sizeof(tagSCFuncPresetFunc)
|
| | |
|
| | | def GetBuffer(self):
|
| | | return string_at(addressof(self), self.GetLength())
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''// B1 62 功能预设切换信息 //tagSCFuncPresetSwitchInfo:
|
| | | FuncPresetType:%d,
|
| | | FuncPresetID:%d
|
| | | '''\
|
| | | %(
|
| | | self.FuncPresetType,
|
| | | self.FuncPresetID
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | class tagSCFuncPresetBat(Structure):
|
| | | BatPresetID = 0 #(BYTE BatPresetID)//所属全局战斗预设ID
|
| | | FuncCnt = 0 #(BYTE FuncCnt)
|
| | | FuncPresetList = list() #(vector<tagSCFuncPresetFunc> FuncPresetList)
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | self.BatPresetID,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.FuncCnt,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.FuncCnt):
|
| | | temFuncPresetList = tagSCFuncPresetFunc()
|
| | | _pos = temFuncPresetList.ReadData(_lpData, _pos)
|
| | | self.FuncPresetList.append(temFuncPresetList)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.BatPresetID = 0
|
| | | self.FuncCnt = 0
|
| | | self.FuncPresetList = list()
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += 1
|
| | | length += 1
|
| | | for i in range(self.FuncCnt):
|
| | | length += self.FuncPresetList[i].GetLength()
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteBYTE(data, self.BatPresetID)
|
| | | data = CommFunc.WriteBYTE(data, self.FuncCnt)
|
| | | for i in range(self.FuncCnt):
|
| | | data = CommFunc.WriteString(data, self.FuncPresetList[i].GetLength(), self.FuncPresetList[i].GetBuffer())
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | BatPresetID:%d,
|
| | | FuncCnt:%d,
|
| | | FuncPresetList:%s
|
| | | '''\
|
| | | %(
|
| | | self.BatPresetID,
|
| | | self.FuncCnt,
|
| | | "..."
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | class tagSCFuncPresetSwitchInfo(Structure):
|
| | | Head = tagHead()
|
| | | BatPresetCnt = 0 #(BYTE BatPresetCnt)
|
| | | BatPresetList = list() #(vector<tagSCFuncPresetBat> BatPresetList)
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | | self.Clear()
|
| | | self.Head.Cmd = 0xB1
|
| | | self.Head.SubCmd = 0x62
|
| | | return
|
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | _pos = self.Head.ReadData(_lpData, _pos)
|
| | | self.BatPresetCnt,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.BatPresetCnt):
|
| | | temBatPresetList = tagSCFuncPresetBat()
|
| | | _pos = temBatPresetList.ReadData(_lpData, _pos)
|
| | | self.BatPresetList.append(temBatPresetList)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.Head = tagHead()
|
| | | self.Head.Clear()
|
| | | self.Head.Cmd = 0xB1
|
| | | self.Head.SubCmd = 0x62
|
| | | self.BatPresetCnt = 0
|
| | | self.BatPresetList = list()
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += self.Head.GetLength()
|
| | | length += 1
|
| | | for i in range(self.BatPresetCnt):
|
| | | length += self.BatPresetList[i].GetLength()
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
|
| | | data = CommFunc.WriteBYTE(data, self.BatPresetCnt)
|
| | | for i in range(self.BatPresetCnt):
|
| | | data = CommFunc.WriteString(data, self.BatPresetList[i].GetLength(), self.BatPresetList[i].GetBuffer())
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | Head:%s,
|
| | | BatPresetCnt:%d,
|
| | | BatPresetList:%s
|
| | | '''\
|
| | | %(
|
| | | self.Head.OutputString(),
|
| | | self.BatPresetCnt,
|
| | | "..."
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagSCFuncPresetSwitchInfo=tagSCFuncPresetSwitchInfo()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagSCFuncPresetSwitchInfo.Head.Cmd,m_NAtagSCFuncPresetSwitchInfo.Head.SubCmd))] = m_NAtagSCFuncPresetSwitchInfo
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B1 11 功能系统特权信息 #tagMCFuncSysPrivilegeInfoList
|
| | |
|
| | | class tagMCFuncSysPrivilegeInfo(Structure):
|
| | |
| | |
|
| | |
|
| | | #------------------------------------------------------
|
| | | # B1 24 阵容信息 #tagSCLineupInfo
|
| | | # B1 24 武将预设信息 #tagSCHeroPresetInfo
|
| | |
|
| | | class tagSCLineup(Structure):
|
| | | LineupID = 0 #(BYTE LineupID)// 阵容ID
|
| | | class tagSCHeroPreset(Structure):
|
| | | PresetID = 0 #(BYTE PresetID)//阵容方案预设ID
|
| | | ShapeType = 0 #(BYTE ShapeType)// 阵型
|
| | | HeroCnt = 0 #(BYTE HeroCnt)
|
| | | HeroItemIndexList = list() #(vector<WORD> HeroItemIndexList)// 所在武将背包索引+1列表 [站位1物品索引+1, 站位2, ...],站位无武将时为0
|
| | |
| | |
|
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | self.LineupID,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.PresetID,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.ShapeType,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | self.HeroCnt,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.HeroCnt):
|
| | |
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | | self.LineupID = 0
|
| | | self.PresetID = 0
|
| | | self.ShapeType = 0
|
| | | self.HeroCnt = 0
|
| | | self.HeroItemIndexList = list()
|
| | |
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteBYTE(data, self.LineupID)
|
| | | data = CommFunc.WriteBYTE(data, self.PresetID)
|
| | | data = CommFunc.WriteBYTE(data, self.ShapeType)
|
| | | data = CommFunc.WriteBYTE(data, self.HeroCnt)
|
| | | for i in range(self.HeroCnt):
|
| | |
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | LineupID:%d,
|
| | | PresetID:%d,
|
| | | ShapeType:%d,
|
| | | HeroCnt:%d,
|
| | | HeroItemIndexList:%s
|
| | | '''\
|
| | | %(
|
| | | self.LineupID,
|
| | | self.PresetID,
|
| | | self.ShapeType,
|
| | | self.HeroCnt,
|
| | | "..."
|
| | |
| | | return DumpString
|
| | |
|
| | |
|
| | | class tagSCLineupInfo(Structure):
|
| | | class tagSCHeroPresetInfo(Structure):
|
| | | Head = tagHead()
|
| | | LineupCnt = 0 #(BYTE LineupCnt)
|
| | | LineupList = list() #(vector<tagSCLineup> LineupList)
|
| | | PresetCnt = 0 #(BYTE PresetCnt)
|
| | | PresetList = list() #(vector<tagSCHeroPreset> PresetList)
|
| | | data = None
|
| | |
|
| | | def __init__(self):
|
| | |
| | | def ReadData(self, _lpData, _pos=0, _Len=0):
|
| | | self.Clear()
|
| | | _pos = self.Head.ReadData(_lpData, _pos)
|
| | | self.LineupCnt,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.LineupCnt):
|
| | | temLineupList = tagSCLineup()
|
| | | _pos = temLineupList.ReadData(_lpData, _pos)
|
| | | self.LineupList.append(temLineupList)
|
| | | self.PresetCnt,_pos = CommFunc.ReadBYTE(_lpData, _pos)
|
| | | for i in range(self.PresetCnt):
|
| | | temPresetList = tagSCHeroPreset()
|
| | | _pos = temPresetList.ReadData(_lpData, _pos)
|
| | | self.PresetList.append(temPresetList)
|
| | | return _pos
|
| | |
|
| | | def Clear(self):
|
| | |
| | | self.Head.Clear()
|
| | | self.Head.Cmd = 0xB1
|
| | | self.Head.SubCmd = 0x24
|
| | | self.LineupCnt = 0
|
| | | self.LineupList = list()
|
| | | self.PresetCnt = 0
|
| | | self.PresetList = list()
|
| | | return
|
| | |
|
| | | def GetLength(self):
|
| | | length = 0
|
| | | length += self.Head.GetLength()
|
| | | length += 1
|
| | | for i in range(self.LineupCnt):
|
| | | length += self.LineupList[i].GetLength()
|
| | | for i in range(self.PresetCnt):
|
| | | length += self.PresetList[i].GetLength()
|
| | |
|
| | | return length
|
| | |
|
| | | def GetBuffer(self):
|
| | | data = ''
|
| | | data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
|
| | | data = CommFunc.WriteBYTE(data, self.LineupCnt)
|
| | | for i in range(self.LineupCnt):
|
| | | data = CommFunc.WriteString(data, self.LineupList[i].GetLength(), self.LineupList[i].GetBuffer())
|
| | | data = CommFunc.WriteBYTE(data, self.PresetCnt)
|
| | | for i in range(self.PresetCnt):
|
| | | data = CommFunc.WriteString(data, self.PresetList[i].GetLength(), self.PresetList[i].GetBuffer())
|
| | | return data
|
| | |
|
| | | def OutputString(self):
|
| | | DumpString = '''
|
| | | Head:%s,
|
| | | LineupCnt:%d,
|
| | | LineupList:%s
|
| | | PresetCnt:%d,
|
| | | PresetList:%s
|
| | | '''\
|
| | | %(
|
| | | self.Head.OutputString(),
|
| | | self.LineupCnt,
|
| | | self.PresetCnt,
|
| | | "..."
|
| | | )
|
| | | return DumpString
|
| | |
|
| | |
|
| | | m_NAtagSCLineupInfo=tagSCLineupInfo()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagSCLineupInfo.Head.Cmd,m_NAtagSCLineupInfo.Head.SubCmd))] = m_NAtagSCLineupInfo
|
| | | m_NAtagSCHeroPresetInfo=tagSCHeroPresetInfo()
|
| | | ChNetPackDict[eval("0x%02x%02x"%(m_NAtagSCHeroPresetInfo.Head.Cmd,m_NAtagSCHeroPresetInfo.Head.SubCmd))] = m_NAtagSCHeroPresetInfo
|
| | |
|
| | |
|
| | | #------------------------------------------------------
|