Beispiel #1
0
 protected override bool OnLine(string[] Fields)
 {
     DailyTaskReward.RowData rowData = new DailyTaskReward.RowData();
     if (!base.Parse <uint>(Fields[this.ColMap[0]], ref rowData.level, CVSReader.uintParse, "2U"))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[1]], ref rowData.tasktype))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[2]], ref rowData.taskquality))
     {
         return(false);
     }
     if (!base.Parse <uint>(Fields[this.ColMap[3]], ref rowData.taskreward, CVSReader.uintParse, "2U"))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[4]], ref rowData.contribute))
     {
         return(false);
     }
     if (!base.Parse <uint>(Fields[this.ColMap[5]], ref rowData.extrareward, CVSReader.uintParse, "2U"))
     {
         return(false);
     }
     this.Table.Add(rowData);
     return(true);
 }
Beispiel #2
0
 protected override void ReadLine(BinaryReader reader)
 {
     DailyTaskReward.RowData rowData = new DailyTaskReward.RowData();
     base.ReadSeq <uint>(reader, ref rowData.level, CVSReader.uintParse);
     this.columnno = 0;
     base.Read <uint>(reader, ref rowData.tasktype, CVSReader.uintParse);
     this.columnno = 1;
     base.Read <uint>(reader, ref rowData.taskquality, CVSReader.uintParse);
     this.columnno = 2;
     base.ReadSeqList <uint>(reader, ref rowData.taskreward, CVSReader.uintParse);
     this.columnno = 3;
     base.Read <uint>(reader, ref rowData.contribute, CVSReader.uintParse);
     this.columnno = 4;
     base.ReadSeqList <uint>(reader, ref rowData.extrareward, CVSReader.uintParse);
     this.columnno = 5;
     this.Table.Add(rowData);
     this.columnno = -1;
 }