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