From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- Client/Assets/Scripts/XUtliPoolLib/TrophyInfo.cs | 88 ++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 Client/Assets/Scripts/XUtliPoolLib/TrophyInfo.cs (limited to 'Client/Assets/Scripts/XUtliPoolLib/TrophyInfo.cs') diff --git a/Client/Assets/Scripts/XUtliPoolLib/TrophyInfo.cs b/Client/Assets/Scripts/XUtliPoolLib/TrophyInfo.cs new file mode 100644 index 00000000..cdb057ec --- /dev/null +++ b/Client/Assets/Scripts/XUtliPoolLib/TrophyInfo.cs @@ -0,0 +1,88 @@ +using System; + +namespace XUtliPoolLib +{ + public class TrophyInfo : CVSReader + { + public TrophyInfo.RowData[] Table = null; + + public class RowData + { + public uint ID; + + public uint SceneID; + + public SeqRef TrophyScore; + + public uint Third; + + public uint ThirdPara; + + public uint Second; + + public uint SecondPara; + + public uint First; + + public uint FirstPara; + + public string Name; + + public string ThirdDesc; + + public string SecondDesc; + + public string FirstDesc; + + public string Icon; + } + + protected override void ReadLine(XBinaryReader reader) + { + TrophyInfo.RowData rowData = new TrophyInfo.RowData(); + base.Read(reader, ref rowData.ID, CVSReader.uintParse); + this.columnno = 0; + base.Read(reader, ref rowData.SceneID, CVSReader.uintParse); + this.columnno = 1; + rowData.TrophyScore.Read(reader, this.m_DataHandler); + this.columnno = 2; + base.Read(reader, ref rowData.Third, CVSReader.uintParse); + this.columnno = 3; + base.Read(reader, ref rowData.ThirdPara, CVSReader.uintParse); + this.columnno = 4; + base.Read(reader, ref rowData.Second, CVSReader.uintParse); + this.columnno = 5; + base.Read(reader, ref rowData.SecondPara, CVSReader.uintParse); + this.columnno = 6; + base.Read(reader, ref rowData.First, CVSReader.uintParse); + this.columnno = 7; + base.Read(reader, ref rowData.FirstPara, CVSReader.uintParse); + this.columnno = 8; + base.Read(reader, ref rowData.Name, CVSReader.stringParse); + this.columnno = 9; + base.Read(reader, ref rowData.ThirdDesc, CVSReader.stringParse); + this.columnno = 10; + base.Read(reader, ref rowData.SecondDesc, CVSReader.stringParse); + this.columnno = 11; + base.Read(reader, ref rowData.FirstDesc, CVSReader.stringParse); + this.columnno = 12; + base.Read(reader, ref rowData.Icon, CVSReader.stringParse); + this.columnno = 13; + this.Table[this.lineno] = rowData; + this.columnno = -1; + } + + protected override void OnClear(int lineCount) + { + bool flag = lineCount > 0; + if (flag) + { + this.Table = new TrophyInfo.RowData[lineCount]; + } + else + { + this.Table = null; + } + } + } +} -- cgit v1.1-26-g67d0