summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XUtliPoolLib/GuildBuffTable.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XUtliPoolLib/GuildBuffTable.cs')
-rw-r--r--Client/Assets/Scripts/XUtliPoolLib/GuildBuffTable.cs40
1 files changed, 40 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XUtliPoolLib/GuildBuffTable.cs b/Client/Assets/Scripts/XUtliPoolLib/GuildBuffTable.cs
new file mode 100644
index 00000000..27998fbb
--- /dev/null
+++ b/Client/Assets/Scripts/XUtliPoolLib/GuildBuffTable.cs
@@ -0,0 +1,40 @@
+using System;
+
+namespace XUtliPoolLib
+{
+ public class GuildBuffTable : CVSReader
+ {
+ public GuildBuffTable.RowData[] Table = null;
+
+ public class RowData
+ {
+ public uint id;
+
+ public uint itemid;
+ }
+
+ protected override void ReadLine(XBinaryReader reader)
+ {
+ GuildBuffTable.RowData rowData = new GuildBuffTable.RowData();
+ base.Read<uint>(reader, ref rowData.id, CVSReader.uintParse);
+ this.columnno = 0;
+ base.Read<uint>(reader, ref rowData.itemid, CVSReader.uintParse);
+ this.columnno = 6;
+ this.Table[this.lineno] = rowData;
+ this.columnno = -1;
+ }
+
+ protected override void OnClear(int lineCount)
+ {
+ bool flag = lineCount > 0;
+ if (flag)
+ {
+ this.Table = new GuildBuffTable.RowData[lineCount];
+ }
+ else
+ {
+ this.Table = null;
+ }
+ }
+ }
+}