Exemple #1
0
 protected override void ReadLine(BinaryReader reader)
 {
     PandoraHeartReward.RowData rowData = new PandoraHeartReward.RowData();
     base.Read <uint>(reader, ref rowData.pandoraid, CVSReader.uintParse);
     this.columnno = 0;
     base.Read <uint>(reader, ref rowData.itemid, CVSReader.uintParse);
     this.columnno = 1;
     base.Read <uint>(reader, ref rowData.itemcount, CVSReader.uintParse);
     this.columnno = 2;
     base.Read <string>(reader, ref rowData.itemname, CVSReader.stringParse);
     this.columnno = 3;
     base.Read <uint>(reader, ref rowData.quality, CVSReader.uintParse);
     this.columnno = 4;
     base.Read <uint>(reader, ref rowData.notice, CVSReader.uintParse);
     this.columnno = 5;
     base.Read <uint>(reader, ref rowData.praise, CVSReader.uintParse);
     this.columnno = 6;
     base.ReadSeq <uint>(reader, ref rowData.showlevel, CVSReader.uintParse);
     this.columnno = 7;
     this.Table.Add(rowData);
     this.columnno = -1;
 }
Exemple #2
0
 protected override bool OnLine(string[] Fields)
 {
     PandoraHeartReward.RowData rowData = new PandoraHeartReward.RowData();
     if (!base.Parse(Fields[this.ColMap[0]], ref rowData.pandoraid))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[1]], ref rowData.itemid))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[2]], ref rowData.itemcount))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[3]], ref rowData.itemname))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[4]], ref rowData.quality))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[5]], ref rowData.notice))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[6]], ref rowData.praise))
     {
         return(false);
     }
     if (!base.Parse <uint>(Fields[this.ColMap[7]], ref rowData.showlevel, CVSReader.uintParse, "2U"))
     {
         return(false);
     }
     this.Table.Add(rowData);
     return(true);
 }