Esempio n. 1
0
 protected override void ReadLine(BinaryReader reader)
 {
     CombatParamTable.RowData rowData = new CombatParamTable.RowData();
     base.Read <int>(reader, ref rowData.PlayerLevel, CVSReader.intParse);
     this.columnno = 0;
     base.Read <int>(reader, ref rowData.CriticalBase, CVSReader.intParse);
     this.columnno = 1;
     base.Read <int>(reader, ref rowData.CritResistBase, CVSReader.intParse);
     this.columnno = 2;
     base.Read <int>(reader, ref rowData.ParalyzeBase, CVSReader.intParse);
     this.columnno = 3;
     base.Read <int>(reader, ref rowData.ParaResistBase, CVSReader.intParse);
     this.columnno = 4;
     base.Read <int>(reader, ref rowData.StunBase, CVSReader.intParse);
     this.columnno = 5;
     base.Read <int>(reader, ref rowData.StunResistBase, CVSReader.intParse);
     this.columnno = 6;
     base.Read <int>(reader, ref rowData.CritDamageBase, CVSReader.intParse);
     this.columnno = 7;
     base.Read <int>(reader, ref rowData.FinalDamageBase, CVSReader.intParse);
     this.columnno = 8;
     base.Read <int>(reader, ref rowData.PhysicalDef, CVSReader.intParse);
     this.columnno = 9;
     base.Read <int>(reader, ref rowData.MagicDef, CVSReader.intParse);
     this.columnno = 10;
     base.Read <int>(reader, ref rowData.ElementAtk, CVSReader.intParse);
     this.columnno = 11;
     base.Read <int>(reader, ref rowData.ElementDef, CVSReader.intParse);
     this.columnno = 12;
     this.Table.Add(rowData);
     this.columnno = -1;
 }
Esempio n. 2
0
 protected override bool OnLine(string[] Fields)
 {
     CombatParamTable.RowData rowData = new CombatParamTable.RowData();
     if (!base.Parse(Fields[this.ColMap[0]], ref rowData.PlayerLevel))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[1]], ref rowData.CriticalBase))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[2]], ref rowData.CritResistBase))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[3]], ref rowData.ParalyzeBase))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[4]], ref rowData.ParaResistBase))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[5]], ref rowData.StunBase))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[6]], ref rowData.StunResistBase))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[7]], ref rowData.CritDamageBase))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[8]], ref rowData.FinalDamageBase))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[9]], ref rowData.PhysicalDef))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[10]], ref rowData.MagicDef))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[11]], ref rowData.ElementAtk))
     {
         return(false);
     }
     if (!base.Parse(Fields[this.ColMap[12]], ref rowData.ElementDef))
     {
         return(false);
     }
     this.Table.Add(rowData);
     return(true);
 }