From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XUtliPoolLib/EquipFusionTable.cs | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Client/Assets/Scripts/XUtliPoolLib/EquipFusionTable.cs (limited to 'Client/Assets/Scripts/XUtliPoolLib/EquipFusionTable.cs') diff --git a/Client/Assets/Scripts/XUtliPoolLib/EquipFusionTable.cs b/Client/Assets/Scripts/XUtliPoolLib/EquipFusionTable.cs new file mode 100644 index 00000000..9f7db5df --- /dev/null +++ b/Client/Assets/Scripts/XUtliPoolLib/EquipFusionTable.cs @@ -0,0 +1,68 @@ +using System; + +namespace XUtliPoolLib +{ + public class EquipFusionTable : CVSReader + { + public EquipFusionTable.RowData[] Table = null; + + public class RowData + { + public uint Profession; + + public byte Slot; + + public byte EquipType; + + public byte BreakNum; + + public uint LevelNum; + + public uint NeedExpPerLevel; + + public SeqListRef LevelAddAttr; + + public SeqListRef BreakAddAttr; + + public SeqListRef BreakNeedMaterial; + } + + protected override void ReadLine(XBinaryReader reader) + { + EquipFusionTable.RowData rowData = new EquipFusionTable.RowData(); + base.Read(reader, ref rowData.Profession, CVSReader.uintParse); + this.columnno = 0; + base.Read(reader, ref rowData.Slot, CVSReader.byteParse); + this.columnno = 1; + base.Read(reader, ref rowData.EquipType, CVSReader.byteParse); + this.columnno = 2; + base.Read(reader, ref rowData.BreakNum, CVSReader.byteParse); + this.columnno = 3; + base.Read(reader, ref rowData.LevelNum, CVSReader.uintParse); + this.columnno = 4; + base.Read(reader, ref rowData.NeedExpPerLevel, CVSReader.uintParse); + this.columnno = 5; + rowData.LevelAddAttr.Read(reader, this.m_DataHandler); + this.columnno = 6; + rowData.BreakAddAttr.Read(reader, this.m_DataHandler); + this.columnno = 7; + rowData.BreakNeedMaterial.Read(reader, this.m_DataHandler); + this.columnno = 8; + this.Table[this.lineno] = rowData; + this.columnno = -1; + } + + protected override void OnClear(int lineCount) + { + bool flag = lineCount > 0; + if (flag) + { + this.Table = new EquipFusionTable.RowData[lineCount]; + } + else + { + this.Table = null; + } + } + } +} -- cgit v1.1-26-g67d0