Example #1
0
 protected override bool OnLine(string[] Fields)
 {
     FpGoToLevelUp.RowData rowData = new FpGoToLevelUp.RowData();
     if (!base.Parse(Fields[this.ColMap[0]], ref rowData.Id))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[1]], ref rowData.Name))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[2]], ref rowData.SystemId))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[3]], ref rowData.Tips))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[4]], ref rowData.IconName))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[5]], ref rowData.StarNum))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[6]], ref rowData.IsRecommond))
     {
         return(false);
     }
     this.Table.Add(rowData);
     return(true);
 }
Example #2
0
 protected override void ReadLine(BinaryReader reader)
 {
     FpGoToLevelUp.RowData rowData = new FpGoToLevelUp.RowData();
     base.Read <uint>(reader, ref rowData.Id, CVSReader.uintParse);
     this.columnno = 0;
     base.Read <string>(reader, ref rowData.Name, CVSReader.stringParse);
     this.columnno = 1;
     base.Read <uint>(reader, ref rowData.SystemId, CVSReader.uintParse);
     this.columnno = 2;
     base.Read <string>(reader, ref rowData.Tips, CVSReader.stringParse);
     this.columnno = 3;
     base.Read <string>(reader, ref rowData.IconName, CVSReader.stringParse);
     this.columnno = 4;
     base.Read <uint>(reader, ref rowData.StarNum, CVSReader.uintParse);
     this.columnno = 5;
     base.Read <uint>(reader, ref rowData.IsRecommond, CVSReader.uintParse);
     this.columnno = 6;
     this.Table.Add(rowData);
     this.columnno = -1;
 }