示例#1
0
 protected override void ReadLine(BinaryReader reader)
 {
     SpriteLevel.RowData rowData = new SpriteLevel.RowData();
     base.Read <uint>(reader, ref rowData.Level, CVSReader.uintParse);
     this.columnno = 0;
     base.Read <uint>(reader, ref rowData.Quality, CVSReader.uintParse);
     this.columnno = 1;
     base.Read <uint>(reader, ref rowData.Exp, CVSReader.uintParse);
     this.columnno = 2;
     base.Read <double>(reader, ref rowData.Ratio, CVSReader.doubleParse);
     this.columnno = 3;
     this.Table.Add(rowData);
     this.columnno = -1;
 }
示例#2
0
 protected override bool OnLine(string[] Fields)
 {
     SpriteLevel.RowData rowData = new SpriteLevel.RowData();
     if (!base.Parse(Fields[this.ColMap[0]], ref rowData.Level))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[1]], ref rowData.Quality))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[2]], ref rowData.Exp))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[3]], ref rowData.Ratio))
     {
         return(false);
     }
     this.Table.Add(rowData);
     return(true);
 }