Example #1
0
 protected override void ReadLine(BinaryReader reader)
 {
     RandomBossTable.RowData rowData = new RandomBossTable.RowData();
     base.Read <int>(reader, ref rowData.RandomID, CVSReader.intParse);
     this.columnno = 0;
     base.Read <int>(reader, ref rowData.EntityID, CVSReader.intParse);
     this.columnno = 1;
     base.Read <int>(reader, ref rowData.Prob, CVSReader.intParse);
     this.columnno = 2;
     this.Table.Add(rowData);
     this.columnno = -1;
 }
Example #2
0
 protected override bool OnLine(string[] Fields)
 {
     RandomBossTable.RowData rowData = new RandomBossTable.RowData();
     if (!base.Parse(Fields[this.ColMap[0]], ref rowData.RandomID))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[1]], ref rowData.EntityID))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[2]], ref rowData.Prob))
     {
         return(false);
     }
     this.Table.Add(rowData);
     return(true);
 }