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/NpcFeeling.cs | 124 +++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 Client/Assets/Scripts/XUtliPoolLib/NpcFeeling.cs (limited to 'Client/Assets/Scripts/XUtliPoolLib/NpcFeeling.cs') diff --git a/Client/Assets/Scripts/XUtliPoolLib/NpcFeeling.cs b/Client/Assets/Scripts/XUtliPoolLib/NpcFeeling.cs new file mode 100644 index 00000000..800e1240 --- /dev/null +++ b/Client/Assets/Scripts/XUtliPoolLib/NpcFeeling.cs @@ -0,0 +1,124 @@ +using System; + +namespace XUtliPoolLib +{ + public class NpcFeeling : CVSReader + { + public NpcFeeling.RowData[] Table = null; + + public class RowData + { + public uint npcId; + + public string name; + + public string introduction; + + public uint openLevel; + + public SeqRef feelingLevel; + + public SeqListRef likeItem; + + public SeqListRef randomItem; + + public SeqListRef favorItem; + + public SeqListRef clientItem; + + public SeqListRef exchangeGive; + + public SeqListRef exchangeGet; + + public SeqListRef npcReturn; + + public string[] giveWords; + + public string[] giveSuccessWords; + + public string[] exchangeWords; + + public string[] exchangeSuccessWords; + + public uint npcReturnMailConf; + + public string icon; + + public uint unionId; + + public string relicsName; + + public string relicsIcon; + + public string relicsDesc; + + public uint xnpclistid; + } + + protected override void ReadLine(XBinaryReader reader) + { + NpcFeeling.RowData rowData = new NpcFeeling.RowData(); + base.Read(reader, ref rowData.npcId, CVSReader.uintParse); + this.columnno = 0; + base.Read(reader, ref rowData.name, CVSReader.stringParse); + this.columnno = 1; + base.Read(reader, ref rowData.introduction, CVSReader.stringParse); + this.columnno = 2; + base.Read(reader, ref rowData.openLevel, CVSReader.uintParse); + this.columnno = 3; + rowData.feelingLevel.Read(reader, this.m_DataHandler); + this.columnno = 4; + rowData.likeItem.Read(reader, this.m_DataHandler); + this.columnno = 5; + rowData.randomItem.Read(reader, this.m_DataHandler); + this.columnno = 6; + rowData.favorItem.Read(reader, this.m_DataHandler); + this.columnno = 7; + rowData.clientItem.Read(reader, this.m_DataHandler); + this.columnno = 8; + rowData.exchangeGive.Read(reader, this.m_DataHandler); + this.columnno = 9; + rowData.exchangeGet.Read(reader, this.m_DataHandler); + this.columnno = 10; + rowData.npcReturn.Read(reader, this.m_DataHandler); + this.columnno = 11; + base.ReadArray(reader, ref rowData.giveWords, CVSReader.stringParse); + this.columnno = 12; + base.ReadArray(reader, ref rowData.giveSuccessWords, CVSReader.stringParse); + this.columnno = 13; + base.ReadArray(reader, ref rowData.exchangeWords, CVSReader.stringParse); + this.columnno = 14; + base.ReadArray(reader, ref rowData.exchangeSuccessWords, CVSReader.stringParse); + this.columnno = 15; + base.Read(reader, ref rowData.npcReturnMailConf, CVSReader.uintParse); + this.columnno = 16; + base.Read(reader, ref rowData.icon, CVSReader.stringParse); + this.columnno = 17; + base.Read(reader, ref rowData.unionId, CVSReader.uintParse); + this.columnno = 18; + base.Read(reader, ref rowData.relicsName, CVSReader.stringParse); + this.columnno = 19; + base.Read(reader, ref rowData.relicsIcon, CVSReader.stringParse); + this.columnno = 20; + base.Read(reader, ref rowData.relicsDesc, CVSReader.stringParse); + this.columnno = 21; + base.Read(reader, ref rowData.xnpclistid, CVSReader.uintParse); + this.columnno = 22; + this.Table[this.lineno] = rowData; + this.columnno = -1; + } + + protected override void OnClear(int lineCount) + { + bool flag = lineCount > 0; + if (flag) + { + this.Table = new NpcFeeling.RowData[lineCount]; + } + else + { + this.Table = null; + } + } + } +} -- cgit v1.1-26-g67d0