From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XUtliPoolLib/GuildConfigTable.cs | 147 +++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 Client/Assets/Scripts/XUtliPoolLib/GuildConfigTable.cs (limited to 'Client/Assets/Scripts/XUtliPoolLib/GuildConfigTable.cs') diff --git a/Client/Assets/Scripts/XUtliPoolLib/GuildConfigTable.cs b/Client/Assets/Scripts/XUtliPoolLib/GuildConfigTable.cs new file mode 100644 index 00000000..3eac2e83 --- /dev/null +++ b/Client/Assets/Scripts/XUtliPoolLib/GuildConfigTable.cs @@ -0,0 +1,147 @@ +using System; + +namespace XUtliPoolLib +{ + public class GuildConfigTable : CVSReader + { + public GuildConfigTable.RowData[] Table = null; + + public class RowData + { + public int GuildLevel; + + public uint GuildExpNeed; + + public int PokerTimes; + + public int GuildSign; + + public int GuildWelfare; + + public int GuildStore; + + public int GuildSkill; + + public uint GuildDragon; + + public int GuildActivity; + + public uint StudySkillTimes; + + public int GuildArena; + + public int GuildChallenge; + + public int GuildJokerMatch; + + public int GuildSalay; + + public int GuildMine; + + public int GuildTerritory; + + public uint JZSchoolRoleMax; + + public uint JZSchoolTotalMax; + + public uint JZHallRoleMax; + + public uint JZHallTotalmax; + + public uint JZSalaryOpen; + + public uint JZSaleOpen; + + public int CrossGVG; + } + + public GuildConfigTable.RowData GetByGuildLevel(int key) + { + bool flag = this.Table == null || this.Table.Length == 0; + GuildConfigTable.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) + { + GuildConfigTable.RowData rowData = new GuildConfigTable.RowData(); + base.Read(reader, ref rowData.GuildLevel, CVSReader.intParse); + this.columnno = 0; + base.Read(reader, ref rowData.GuildExpNeed, CVSReader.uintParse); + this.columnno = 1; + base.Read(reader, ref rowData.PokerTimes, CVSReader.intParse); + this.columnno = 3; + base.Read(reader, ref rowData.GuildSign, CVSReader.intParse); + this.columnno = 5; + base.Read(reader, ref rowData.GuildWelfare, CVSReader.intParse); + this.columnno = 6; + base.Read(reader, ref rowData.GuildStore, CVSReader.intParse); + this.columnno = 7; + base.Read(reader, ref rowData.GuildSkill, CVSReader.intParse); + this.columnno = 8; + base.Read(reader, ref rowData.GuildDragon, CVSReader.uintParse); + this.columnno = 13; + base.Read(reader, ref rowData.GuildActivity, CVSReader.intParse); + this.columnno = 15; + base.Read(reader, ref rowData.StudySkillTimes, CVSReader.uintParse); + this.columnno = 21; + base.Read(reader, ref rowData.GuildArena, CVSReader.intParse); + this.columnno = 23; + base.Read(reader, ref rowData.GuildChallenge, CVSReader.intParse); + this.columnno = 26; + base.Read(reader, ref rowData.GuildJokerMatch, CVSReader.intParse); + this.columnno = 27; + base.Read(reader, ref rowData.GuildSalay, CVSReader.intParse); + this.columnno = 28; + base.Read(reader, ref rowData.GuildMine, CVSReader.intParse); + this.columnno = 29; + base.Read(reader, ref rowData.GuildTerritory, CVSReader.intParse); + this.columnno = 30; + base.Read(reader, ref rowData.JZSchoolRoleMax, CVSReader.uintParse); + this.columnno = 31; + base.Read(reader, ref rowData.JZSchoolTotalMax, CVSReader.uintParse); + this.columnno = 32; + base.Read(reader, ref rowData.JZHallRoleMax, CVSReader.uintParse); + this.columnno = 33; + base.Read(reader, ref rowData.JZHallTotalmax, CVSReader.uintParse); + this.columnno = 34; + base.Read(reader, ref rowData.JZSalaryOpen, CVSReader.uintParse); + this.columnno = 35; + base.Read(reader, ref rowData.JZSaleOpen, CVSReader.uintParse); + this.columnno = 36; + base.Read(reader, ref rowData.CrossGVG, CVSReader.intParse); + this.columnno = 37; + this.Table[this.lineno] = rowData; + this.columnno = -1; + } + + protected override void OnClear(int lineCount) + { + bool flag = lineCount > 0; + if (flag) + { + this.Table = new GuildConfigTable.RowData[lineCount]; + } + else + { + this.Table = null; + } + } + } +} -- cgit v1.1-26-g67d0