From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XUtliPoolLib/PayMemberTable.cs | 144 +++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 Client/Assets/Scripts/XUtliPoolLib/PayMemberTable.cs (limited to 'Client/Assets/Scripts/XUtliPoolLib/PayMemberTable.cs') diff --git a/Client/Assets/Scripts/XUtliPoolLib/PayMemberTable.cs b/Client/Assets/Scripts/XUtliPoolLib/PayMemberTable.cs new file mode 100644 index 00000000..4c9460a4 --- /dev/null +++ b/Client/Assets/Scripts/XUtliPoolLib/PayMemberTable.cs @@ -0,0 +1,144 @@ +using System; + +namespace XUtliPoolLib +{ + public class PayMemberTable : CVSReader + { + public PayMemberTable.RowData[] Table = null; + + public class RowData + { + public string ParamID; + + public int ID; + + public string Name; + + public int Price; + + public int Days; + + public int ChatCount; + + public int FatigueLimit; + + public int AbyssCount; + + public int ReviveCount; + + public int BossRushCount; + + public int BuyGreenAgateLimit; + + public int[] CheckinDoubleDays; + + public int SuperRiskCount; + + public int SystemID; + + public string Icon; + + public string Desc; + + public string Tip; + + public string Detail; + + public string BuyNtf; + + public int[] CheckinDoubleEvenDays; + + public string ServiceCode; + + public SeqRef Value; + + public int AuctionCount; + + public SeqRef worldBossbuffid; + + public SeqRef guildBossBuffid; + + public int HeroBattleFree; + + public uint NpcFeeling; + + public int ShopRefresh; + } + + protected override void ReadLine(XBinaryReader reader) + { + PayMemberTable.RowData rowData = new PayMemberTable.RowData(); + base.Read(reader, ref rowData.ParamID, CVSReader.stringParse); + this.columnno = 0; + base.Read(reader, ref rowData.ID, CVSReader.intParse); + this.columnno = 1; + base.Read(reader, ref rowData.Name, CVSReader.stringParse); + this.columnno = 2; + base.Read(reader, ref rowData.Price, CVSReader.intParse); + this.columnno = 3; + base.Read(reader, ref rowData.Days, CVSReader.intParse); + this.columnno = 4; + base.Read(reader, ref rowData.ChatCount, CVSReader.intParse); + this.columnno = 7; + base.Read(reader, ref rowData.FatigueLimit, CVSReader.intParse); + this.columnno = 8; + base.Read(reader, ref rowData.AbyssCount, CVSReader.intParse); + this.columnno = 9; + base.Read(reader, ref rowData.ReviveCount, CVSReader.intParse); + this.columnno = 10; + base.Read(reader, ref rowData.BossRushCount, CVSReader.intParse); + this.columnno = 12; + base.Read(reader, ref rowData.BuyGreenAgateLimit, CVSReader.intParse); + this.columnno = 13; + base.ReadArray(reader, ref rowData.CheckinDoubleDays, CVSReader.intParse); + this.columnno = 14; + base.Read(reader, ref rowData.SuperRiskCount, CVSReader.intParse); + this.columnno = 16; + base.Read(reader, ref rowData.SystemID, CVSReader.intParse); + this.columnno = 17; + base.Read(reader, ref rowData.Icon, CVSReader.stringParse); + this.columnno = 18; + base.Read(reader, ref rowData.Desc, CVSReader.stringParse); + this.columnno = 19; + base.Read(reader, ref rowData.Tip, CVSReader.stringParse); + this.columnno = 20; + base.Read(reader, ref rowData.Detail, CVSReader.stringParse); + this.columnno = 22; + base.Read(reader, ref rowData.BuyNtf, CVSReader.stringParse); + this.columnno = 23; + base.ReadArray(reader, ref rowData.CheckinDoubleEvenDays, CVSReader.intParse); + this.columnno = 24; + base.Read(reader, ref rowData.ServiceCode, CVSReader.stringParse); + this.columnno = 25; + rowData.Value.Read(reader, this.m_DataHandler); + this.columnno = 26; + base.Read(reader, ref rowData.AuctionCount, CVSReader.intParse); + this.columnno = 28; + rowData.worldBossbuffid.Read(reader, this.m_DataHandler); + this.columnno = 29; + rowData.guildBossBuffid.Read(reader, this.m_DataHandler); + this.columnno = 30; + base.Read(reader, ref rowData.HeroBattleFree, CVSReader.intParse); + this.columnno = 31; + base.Read(reader, ref rowData.NpcFeeling, CVSReader.uintParse); + this.columnno = 32; + base.Read(reader, ref rowData.ShopRefresh, CVSReader.intParse); + this.columnno = 33; + this.Table[this.lineno] = rowData; + this.columnno = -1; + } + + protected override void OnClear(int lineCount) + { + bool flag = lineCount > 0; + if (flag) + { + this.Table = new PayMemberTable.RowData[lineCount]; + } + else + { + this.Table = null; + } + } + } +} -- cgit v1.1-26-g67d0