From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XUtliPoolLib/GuildSalaryTable.cs | 179 +++++++++++++++++++++ 1 file changed, 179 insertions(+) create mode 100644 Client/Assets/Scripts/XUtliPoolLib/GuildSalaryTable.cs (limited to 'Client/Assets/Scripts/XUtliPoolLib/GuildSalaryTable.cs') diff --git a/Client/Assets/Scripts/XUtliPoolLib/GuildSalaryTable.cs b/Client/Assets/Scripts/XUtliPoolLib/GuildSalaryTable.cs new file mode 100644 index 00000000..5234f1f6 --- /dev/null +++ b/Client/Assets/Scripts/XUtliPoolLib/GuildSalaryTable.cs @@ -0,0 +1,179 @@ +using System; + +namespace XUtliPoolLib +{ + public class GuildSalaryTable : CVSReader + { + public GuildSalaryTable.RowData[] Table = null; + + public class RowData + { + public uint GuildLevel; + + public uint[] GuildReview; + + public SeqListRef NumberTransformation; + + public SeqListRef PrestigeTransformation; + + public SeqListRef ActiveTransformation; + + public SeqListRef EXPTransformation; + + public SeqListRef SSalary1; + + public SeqListRef SSalary2; + + public SeqListRef SSalary3; + + public SeqListRef SSalary4; + + public SeqListRef SSalary5; + + public SeqListRef ASalary1; + + public SeqListRef ASalary2; + + public SeqListRef ASalary3; + + public SeqListRef ASalary4; + + public SeqListRef ASalary5; + + public SeqListRef BSalary1; + + public SeqListRef BSalary2; + + public SeqListRef BSalary3; + + public SeqListRef BSalary4; + + public SeqListRef BSalary5; + + public SeqListRef CSalary1; + + public SeqListRef CSalary2; + + public SeqListRef CSalary3; + + public SeqListRef CSalary4; + + public SeqListRef CSalary5; + + public SeqListRef DSalary1; + + public SeqListRef DSalary2; + + public SeqListRef DSalary3; + + public SeqListRef DSalary4; + + public SeqListRef DSalary5; + } + + public GuildSalaryTable.RowData GetByGuildLevel(uint key) + { + bool flag = this.Table == null || this.Table.Length == 0; + GuildSalaryTable.RowData result; + if (flag) + { + result = null; + } + else + { + for (int i = 0; i < this.Table.Length; i++) + { + bool flag2 = this.Table[i].GuildLevel == key; + if (flag2) + { + return this.Table[i]; + } + } + result = null; + } + return result; + } + + protected override void ReadLine(XBinaryReader reader) + { + GuildSalaryTable.RowData rowData = new GuildSalaryTable.RowData(); + base.Read(reader, ref rowData.GuildLevel, CVSReader.uintParse); + this.columnno = 0; + base.ReadArray(reader, ref rowData.GuildReview, CVSReader.uintParse); + this.columnno = 1; + rowData.NumberTransformation.Read(reader, this.m_DataHandler); + this.columnno = 3; + rowData.PrestigeTransformation.Read(reader, this.m_DataHandler); + this.columnno = 4; + rowData.ActiveTransformation.Read(reader, this.m_DataHandler); + this.columnno = 5; + rowData.EXPTransformation.Read(reader, this.m_DataHandler); + this.columnno = 6; + rowData.SSalary1.Read(reader, this.m_DataHandler); + this.columnno = 7; + rowData.SSalary2.Read(reader, this.m_DataHandler); + this.columnno = 8; + rowData.SSalary3.Read(reader, this.m_DataHandler); + this.columnno = 9; + rowData.SSalary4.Read(reader, this.m_DataHandler); + this.columnno = 10; + rowData.SSalary5.Read(reader, this.m_DataHandler); + this.columnno = 11; + rowData.ASalary1.Read(reader, this.m_DataHandler); + this.columnno = 12; + rowData.ASalary2.Read(reader, this.m_DataHandler); + this.columnno = 13; + rowData.ASalary3.Read(reader, this.m_DataHandler); + this.columnno = 14; + rowData.ASalary4.Read(reader, this.m_DataHandler); + this.columnno = 15; + rowData.ASalary5.Read(reader, this.m_DataHandler); + this.columnno = 16; + rowData.BSalary1.Read(reader, this.m_DataHandler); + this.columnno = 17; + rowData.BSalary2.Read(reader, this.m_DataHandler); + this.columnno = 18; + rowData.BSalary3.Read(reader, this.m_DataHandler); + this.columnno = 19; + rowData.BSalary4.Read(reader, this.m_DataHandler); + this.columnno = 20; + rowData.BSalary5.Read(reader, this.m_DataHandler); + this.columnno = 21; + rowData.CSalary1.Read(reader, this.m_DataHandler); + this.columnno = 22; + rowData.CSalary2.Read(reader, this.m_DataHandler); + this.columnno = 23; + rowData.CSalary3.Read(reader, this.m_DataHandler); + this.columnno = 24; + rowData.CSalary4.Read(reader, this.m_DataHandler); + this.columnno = 25; + rowData.CSalary5.Read(reader, this.m_DataHandler); + this.columnno = 26; + rowData.DSalary1.Read(reader, this.m_DataHandler); + this.columnno = 27; + rowData.DSalary2.Read(reader, this.m_DataHandler); + this.columnno = 28; + rowData.DSalary3.Read(reader, this.m_DataHandler); + this.columnno = 29; + rowData.DSalary4.Read(reader, this.m_DataHandler); + this.columnno = 30; + rowData.DSalary5.Read(reader, this.m_DataHandler); + this.columnno = 31; + this.Table[this.lineno] = rowData; + this.columnno = -1; + } + + protected override void OnClear(int lineCount) + { + bool flag = lineCount > 0; + if (flag) + { + this.Table = new GuildSalaryTable.RowData[lineCount]; + } + else + { + this.Table = null; + } + } + } +} -- cgit v1.1-26-g67d0