summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XUtliPoolLib/ItemUseButtonList.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XUtliPoolLib/ItemUseButtonList.cs')
-rw-r--r--Client/Assets/Scripts/XUtliPoolLib/ItemUseButtonList.cs48
1 files changed, 48 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XUtliPoolLib/ItemUseButtonList.cs b/Client/Assets/Scripts/XUtliPoolLib/ItemUseButtonList.cs
new file mode 100644
index 00000000..49afac1a
--- /dev/null
+++ b/Client/Assets/Scripts/XUtliPoolLib/ItemUseButtonList.cs
@@ -0,0 +1,48 @@
+using System;
+
+namespace XUtliPoolLib
+{
+ public class ItemUseButtonList : CVSReader
+ {
+ public ItemUseButtonList.RowData[] Table = null;
+
+ public class RowData
+ {
+ public uint ItemID;
+
+ public string ButtonName;
+
+ public uint SystemID;
+
+ public uint TypeID;
+ }
+
+ protected override void ReadLine(XBinaryReader reader)
+ {
+ ItemUseButtonList.RowData rowData = new ItemUseButtonList.RowData();
+ base.Read<uint>(reader, ref rowData.ItemID, CVSReader.uintParse);
+ this.columnno = 0;
+ base.Read<string>(reader, ref rowData.ButtonName, CVSReader.stringParse);
+ this.columnno = 2;
+ base.Read<uint>(reader, ref rowData.SystemID, CVSReader.uintParse);
+ this.columnno = 3;
+ base.Read<uint>(reader, ref rowData.TypeID, CVSReader.uintParse);
+ this.columnno = 4;
+ this.Table[this.lineno] = rowData;
+ this.columnno = -1;
+ }
+
+ protected override void OnClear(int lineCount)
+ {
+ bool flag = lineCount > 0;
+ if (flag)
+ {
+ this.Table = new ItemUseButtonList.RowData[lineCount];
+ }
+ else
+ {
+ this.Table = null;
+ }
+ }
+ }
+}