diff options
Diffstat (limited to 'Client/Assets/Scripts/XUtliPoolLib/CardRewardTable.cs')
-rw-r--r-- | Client/Assets/Scripts/XUtliPoolLib/CardRewardTable.cs | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XUtliPoolLib/CardRewardTable.cs b/Client/Assets/Scripts/XUtliPoolLib/CardRewardTable.cs new file mode 100644 index 00000000..28952d78 --- /dev/null +++ b/Client/Assets/Scripts/XUtliPoolLib/CardRewardTable.cs @@ -0,0 +1,48 @@ +using System;
+
+namespace XUtliPoolLib
+{
+ public class CardRewardTable : CVSReader
+ {
+ public CardRewardTable.RowData[] Table = null;
+
+ public class RowData
+ {
+ public SeqListRef<uint> reward;
+
+ public uint point;
+
+ public SeqListRef<uint> matchreward;
+
+ public SeqListRef<uint> jokerreward;
+ }
+
+ protected override void ReadLine(XBinaryReader reader)
+ {
+ CardRewardTable.RowData rowData = new CardRewardTable.RowData();
+ rowData.reward.Read(reader, this.m_DataHandler);
+ this.columnno = 1;
+ base.Read<uint>(reader, ref rowData.point, CVSReader.uintParse);
+ this.columnno = 4;
+ rowData.matchreward.Read(reader, this.m_DataHandler);
+ this.columnno = 5;
+ rowData.jokerreward.Read(reader, this.m_DataHandler);
+ 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 CardRewardTable.RowData[lineCount];
+ }
+ else
+ {
+ this.Table = null;
+ }
+ }
+ }
+}
|