Exemple #1
0
 protected override bool OnLine(string[] Fields)
 {
     ProfessionGrowthPercentTable.RowData rowData = new ProfessionGrowthPercentTable.RowData();
     if (!base.Parse(Fields[this.ColMap[0]], ref rowData.ProfessionID))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[1]], ref rowData.Strength))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[2]], ref rowData.Agility))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[3]], ref rowData.Intelligence))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[4]], ref rowData.Vitality))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[5]], ref rowData.ProfessionName))
     {
         return(false);
     }
     this.Table.Add(rowData);
     return(true);
 }
Exemple #2
0
 protected override void ReadLine(BinaryReader reader)
 {
     ProfessionGrowthPercentTable.RowData rowData = new ProfessionGrowthPercentTable.RowData();
     base.Read <int>(reader, ref rowData.ProfessionID, CVSReader.intParse);
     this.columnno = 0;
     base.Read <int>(reader, ref rowData.Strength, CVSReader.intParse);
     this.columnno = 1;
     base.Read <int>(reader, ref rowData.Agility, CVSReader.intParse);
     this.columnno = 2;
     base.Read <int>(reader, ref rowData.Intelligence, CVSReader.intParse);
     this.columnno = 3;
     base.Read <int>(reader, ref rowData.Vitality, CVSReader.intParse);
     this.columnno = 4;
     base.Read <string>(reader, ref rowData.ProfessionName, CVSReader.stringParse);
     this.columnno = 5;
     this.Table.Add(rowData);
     this.columnno = -1;
 }