Ejemplo n.º 1
0
 protected override void ReadLine(BinaryReader reader)
 {
     PkPointTable.RowData rowData = new PkPointTable.RowData();
     base.Read <uint>(reader, ref rowData.point, CVSReader.uintParse);
     this.columnno = 0;
     base.ReadSeqList <uint>(reader, ref rowData.reward, CVSReader.uintParse);
     this.columnno = 1;
     base.Read <int>(reader, ref rowData.level, CVSReader.intParse);
     this.columnno = 2;
     base.Read <int>(reader, ref rowData.IconIndex, CVSReader.intParse);
     this.columnno = 3;
     this.Table.Add(rowData);
     this.columnno = -1;
 }
Ejemplo n.º 2
0
 protected override bool OnLine(string[] Fields)
 {
     PkPointTable.RowData rowData = new PkPointTable.RowData();
     if (!base.Parse(Fields[this.ColMap[0]], ref rowData.point))
     {
         return(false);
     }
     if (!base.Parse <uint>(Fields[this.ColMap[1]], ref rowData.reward, CVSReader.uintParse, "2U"))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[2]], ref rowData.level))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[3]], ref rowData.IconIndex))
     {
         return(false);
     }
     this.Table.Add(rowData);
     return(true);
 }