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/ActionAudio.cs | 90 +++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 Client/Assets/Scripts/XUtliPoolLib/ActionAudio.cs (limited to 'Client/Assets/Scripts/XUtliPoolLib/ActionAudio.cs') diff --git a/Client/Assets/Scripts/XUtliPoolLib/ActionAudio.cs b/Client/Assets/Scripts/XUtliPoolLib/ActionAudio.cs new file mode 100644 index 00000000..bcada614 --- /dev/null +++ b/Client/Assets/Scripts/XUtliPoolLib/ActionAudio.cs @@ -0,0 +1,90 @@ +using System; +using System.Collections.Generic; + +namespace XUtliPoolLib +{ + public class ActionAudio : CVSReader + { + public Dictionary Table = new Dictionary(); + + public class RowData + { + public string Prefab; + + public string[] Idle; + + public string[] Move; + + public string[] Jump; + + public string[] Fall; + + public string[] Charge; + + public string[] Freeze; + + public string[] Behit; + + public string[] Death; + + public string[] BehitFly; + + public string[] BehitRoll; + + public string[] BehitSuperArmor; + } + + public ActionAudio.RowData GetByPrefab(string key) + { + bool flag = this.Table.Count == 0; + ActionAudio.RowData result; + if (flag) + { + result = null; + } + else + { + ActionAudio.RowData rowData = null; + this.Table.TryGetValue(key, out rowData); + result = rowData; + } + return result; + } + + protected override void ReadLine(XBinaryReader reader) + { + ActionAudio.RowData rowData = new ActionAudio.RowData(); + base.Read(reader, ref rowData.Prefab, CVSReader.stringParse); + this.columnno = 0; + base.ReadArray(reader, ref rowData.Idle, CVSReader.stringParse); + this.columnno = 1; + base.ReadArray(reader, ref rowData.Move, CVSReader.stringParse); + this.columnno = 2; + base.ReadArray(reader, ref rowData.Jump, CVSReader.stringParse); + this.columnno = 3; + base.ReadArray(reader, ref rowData.Fall, CVSReader.stringParse); + this.columnno = 4; + base.ReadArray(reader, ref rowData.Charge, CVSReader.stringParse); + this.columnno = 6; + base.ReadArray(reader, ref rowData.Freeze, CVSReader.stringParse); + this.columnno = 7; + base.ReadArray(reader, ref rowData.Behit, CVSReader.stringParse); + this.columnno = 8; + base.ReadArray(reader, ref rowData.Death, CVSReader.stringParse); + this.columnno = 9; + base.ReadArray(reader, ref rowData.BehitFly, CVSReader.stringParse); + this.columnno = 10; + base.ReadArray(reader, ref rowData.BehitRoll, CVSReader.stringParse); + this.columnno = 11; + base.ReadArray(reader, ref rowData.BehitSuperArmor, CVSReader.stringParse); + this.columnno = 12; + this.Table[rowData.Prefab] = rowData; + this.columnno = -1; + } + + protected override void OnClear(int lineCount) + { + this.Table.Clear(); + } + } +} -- cgit v1.1-26-g67d0