예제 #1
0
 protected override bool OnLine(string[] Fields)
 {
     EnhanceFxTable.RowData rowData = new EnhanceFxTable.RowData();
     if (!base.Parse(Fields[this.ColMap[0]], ref rowData.EnhanceLevel))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[1]], ref rowData.MainWeaponFx))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[2]], ref rowData.ProfID))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[3]], ref rowData.MainWeaponMat))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[4]], ref rowData.Tips))
     {
         return(false);
     }
     this.Table.Add(rowData);
     return(true);
 }
예제 #2
0
 protected override void ReadLine(BinaryReader reader)
 {
     EnhanceFxTable.RowData rowData = new EnhanceFxTable.RowData();
     base.Read <uint>(reader, ref rowData.EnhanceLevel, CVSReader.uintParse);
     this.columnno = 0;
     base.Read <string>(reader, ref rowData.MainWeaponFx, CVSReader.stringParse);
     this.columnno = 1;
     base.Read <uint>(reader, ref rowData.ProfID, CVSReader.uintParse);
     this.columnno = 2;
     base.Read <string>(reader, ref rowData.MainWeaponMat, CVSReader.stringParse);
     this.columnno = 3;
     base.Read <string>(reader, ref rowData.Tips, CVSReader.stringParse);
     this.columnno = 4;
     this.Table.Add(rowData);
     this.columnno = -1;
 }