diff options
Diffstat (limited to 'Client/Assets/Scripts/XUtliPoolLib/SkillCombo.cs')
-rw-r--r-- | Client/Assets/Scripts/XUtliPoolLib/SkillCombo.cs | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XUtliPoolLib/SkillCombo.cs b/Client/Assets/Scripts/XUtliPoolLib/SkillCombo.cs new file mode 100644 index 00000000..c8dcf621 --- /dev/null +++ b/Client/Assets/Scripts/XUtliPoolLib/SkillCombo.cs @@ -0,0 +1,56 @@ +using System;
+
+namespace XUtliPoolLib
+{
+ public class SkillCombo : CVSReader
+ {
+ public SkillCombo.RowData[] Table = null;
+
+ public class RowData
+ {
+ public string skillname;
+
+ public string nextskill0;
+
+ public string nextskill1;
+
+ public string nextskill2;
+
+ public string nextskill3;
+
+ public string nextskill4;
+ }
+
+ protected override void ReadLine(XBinaryReader reader)
+ {
+ SkillCombo.RowData rowData = new SkillCombo.RowData();
+ base.Read<string>(reader, ref rowData.skillname, CVSReader.stringParse);
+ this.columnno = 0;
+ base.Read<string>(reader, ref rowData.nextskill0, CVSReader.stringParse);
+ this.columnno = 1;
+ base.Read<string>(reader, ref rowData.nextskill1, CVSReader.stringParse);
+ this.columnno = 2;
+ base.Read<string>(reader, ref rowData.nextskill2, CVSReader.stringParse);
+ this.columnno = 3;
+ base.Read<string>(reader, ref rowData.nextskill3, CVSReader.stringParse);
+ this.columnno = 4;
+ base.Read<string>(reader, ref rowData.nextskill4, CVSReader.stringParse);
+ this.columnno = 5;
+ this.Table[this.lineno] = rowData;
+ this.columnno = -1;
+ }
+
+ protected override void OnClear(int lineCount)
+ {
+ bool flag = lineCount > 0;
+ if (flag)
+ {
+ this.Table = new SkillCombo.RowData[lineCount];
+ }
+ else
+ {
+ this.Table = null;
+ }
+ }
+ }
+}
|