少年修仙传客户端代码仓库
client_Wu Xijin
2019-02-12 1aeb815836d84ecfddf761a47862efebbba0ad03
Core/GameEngine/Model/Config/EquipGSParamConfig.cs
@@ -1,164 +1,166 @@
//--------------------------------------------------------
//    [Author]:         第二世界
//    [  Date ]:         Thursday, January 24, 2019
//--------------------------------------------------------
using UnityEngine;
using System;
namespace TableConfig {
   public partial class EquipGSParamConfig : ConfigBase {
      public int ID { get ; private set ; }
      public int EquipClass { get ; private set ; }
      public int EquipColor { get ; private set ; }
      public int EquipStar { get ; private set ; }
      public int AtkPerC { get ; private set ; }
      public int DamagePerC { get ; private set ; }
      public int SuperHitRateC { get ; private set ; }
      public int SuperHitPerC { get ; private set ; }
      public int DamReduceC { get ; private set ; }
      public int MaxHPPerC { get ; private set ; }
      public int DefPerC { get ; private set ; }
      public int LuckyHitRateC { get ; private set ; }
      public int PetDamPerC { get ; private set ; }
      public int PerLVAtkC { get ; private set ; }
      public int MissRateC { get ; private set ; }
      public int HitRateC { get ; private set ; }
      public int DamBackPerC { get ; private set ; }
      public int PerLVMaxHPC { get ; private set ; }
      public int DropEquipPerC { get ; private set ; }
      public int DropMoneyPerC { get ; private set ; }
      public int IgnoreDefRateReduceC { get ; private set ; }
      public int DamChanceDefC { get ; private set ; }
      public int SuperHitReduceC { get ; private set ; }
      public int SkillAtkRateC { get ; private set ; }
      public int SpeedPerC { get ; private set ; }
      public int AtkSpeedC { get ; private set ; }
      public int SkillAtkRateReduceC { get ; private set ; }
      public int HitC { get ; private set ; }
      public int MissC { get ; private set ; }
      public int SkillAddPerAC { get ; private set ; }
      public int SkillAddPerBC { get ; private set ; }
      public int SkillAddPerCC { get ; private set ; }
      public int SkillAddPerDC { get ; private set ; }
      public int SkillAddPerEC { get ; private set ; }
      public int SkillAddPerFC { get ; private set ; }
      public int SkillAddPerGC { get ; private set ; }
      public int SkillReducePerAC { get ; private set ; }
      public int SkillReducePerBC { get ; private set ; }
      public int SkillReducePerCC { get ; private set ; }
      public int SkillReducePerDC { get ; private set ; }
      public int SkillReducePerEC { get ; private set ; }
      public int SkillReducePerFC { get ; private set ; }
      public int SkillReducePerGC { get ; private set ; }
      public override string getKey()
        {
            return ID.ToString();
        }
      public override void Parse() {
         try
            {
                ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
//--------------------------------------------------------
//    [Author]:         第二世界
//    [  Date ]:         Tuesday, February 12, 2019
//--------------------------------------------------------
using UnityEngine;
using System;
namespace TableConfig {
   public partial class EquipGSParamConfig : ConfigBase {
      public int ID;
      public int EquipClass;
      public int EquipColor;
      public int EquipStar;
      public int AtkPerC;
      public int DamagePerC;
      public int SuperHitRateC;
      public int SuperHitPerC;
      public int DamReduceC;
      public int MaxHPPerC;
      public int DefPerC;
      public int LuckyHitRateC;
      public int PetDamPerC;
      public int PerLVAtkC;
      public int MissRateC;
      public int HitRateC;
      public int DamBackPerC;
      public int PerLVMaxHPC;
      public int DropEquipPerC;
      public int DropMoneyPerC;
      public int IgnoreDefRateReduceC;
      public int DamChanceDefC;
      public int SuperHitReduceC;
      public int SkillAtkRateC;
      public int SpeedPerC;
      public int AtkSpeedC;
      public int SkillAtkRateReduceC;
      public int HitC;
      public int MissC;
      public int SkillAddPerAC;
      public int SkillAddPerBC;
      public int SkillAddPerCC;
      public int SkillAddPerDC;
      public int SkillAddPerEC;
      public int SkillAddPerFC;
      public int SkillAddPerGC;
      public int SkillReducePerAC;
      public int SkillReducePerBC;
      public int SkillReducePerCC;
      public int SkillReducePerDC;
      public int SkillReducePerEC;
      public int SkillReducePerFC;
      public int SkillReducePerGC;
      public override string getKey()
        {
            return ID.ToString();
        }
      public override void Parse(string content) {
         try
            {
                var contents = content.Split('\t');
                int.TryParse(contents[0],out ID);
         
            EquipClass=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
            int.TryParse(contents[1],out EquipClass);
         
            EquipColor=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0;
            int.TryParse(contents[2],out EquipColor);
         
            EquipStar=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0;
            int.TryParse(contents[3],out EquipStar);
         
            AtkPerC=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0;
            int.TryParse(contents[4],out AtkPerC);
         
            DamagePerC=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0;
            int.TryParse(contents[5],out DamagePerC);
         
            SuperHitRateC=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0;
            int.TryParse(contents[6],out SuperHitRateC);
         
            SuperHitPerC=IsNumeric(rawContents[7]) ? int.Parse(rawContents[7]):0;
            int.TryParse(contents[7],out SuperHitPerC);
         
            DamReduceC=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0;
            int.TryParse(contents[8],out DamReduceC);
         
            MaxHPPerC=IsNumeric(rawContents[9]) ? int.Parse(rawContents[9]):0;
            int.TryParse(contents[9],out MaxHPPerC);
         
            DefPerC=IsNumeric(rawContents[10]) ? int.Parse(rawContents[10]):0;
            int.TryParse(contents[10],out DefPerC);
         
            LuckyHitRateC=IsNumeric(rawContents[11]) ? int.Parse(rawContents[11]):0;
            int.TryParse(contents[11],out LuckyHitRateC);
         
            PetDamPerC=IsNumeric(rawContents[12]) ? int.Parse(rawContents[12]):0;
            int.TryParse(contents[12],out PetDamPerC);
         
            PerLVAtkC=IsNumeric(rawContents[13]) ? int.Parse(rawContents[13]):0;
            int.TryParse(contents[13],out PerLVAtkC);
         
            MissRateC=IsNumeric(rawContents[14]) ? int.Parse(rawContents[14]):0;
            int.TryParse(contents[14],out MissRateC);
         
            HitRateC=IsNumeric(rawContents[15]) ? int.Parse(rawContents[15]):0;
            int.TryParse(contents[15],out HitRateC);
         
            DamBackPerC=IsNumeric(rawContents[16]) ? int.Parse(rawContents[16]):0;
            int.TryParse(contents[16],out DamBackPerC);
         
            PerLVMaxHPC=IsNumeric(rawContents[17]) ? int.Parse(rawContents[17]):0;
            int.TryParse(contents[17],out PerLVMaxHPC);
         
            DropEquipPerC=IsNumeric(rawContents[18]) ? int.Parse(rawContents[18]):0;
            int.TryParse(contents[18],out DropEquipPerC);
         
            DropMoneyPerC=IsNumeric(rawContents[19]) ? int.Parse(rawContents[19]):0;
            int.TryParse(contents[19],out DropMoneyPerC);
         
            IgnoreDefRateReduceC=IsNumeric(rawContents[20]) ? int.Parse(rawContents[20]):0;
            int.TryParse(contents[20],out IgnoreDefRateReduceC);
         
            DamChanceDefC=IsNumeric(rawContents[21]) ? int.Parse(rawContents[21]):0;
            int.TryParse(contents[21],out DamChanceDefC);
         
            SuperHitReduceC=IsNumeric(rawContents[22]) ? int.Parse(rawContents[22]):0;
            int.TryParse(contents[22],out SuperHitReduceC);
         
            SkillAtkRateC=IsNumeric(rawContents[23]) ? int.Parse(rawContents[23]):0;
            int.TryParse(contents[23],out SkillAtkRateC);
         
            SpeedPerC=IsNumeric(rawContents[24]) ? int.Parse(rawContents[24]):0;
            int.TryParse(contents[24],out SpeedPerC);
         
            AtkSpeedC=IsNumeric(rawContents[25]) ? int.Parse(rawContents[25]):0;
            int.TryParse(contents[25],out AtkSpeedC);
         
            SkillAtkRateReduceC=IsNumeric(rawContents[26]) ? int.Parse(rawContents[26]):0;
            int.TryParse(contents[26],out SkillAtkRateReduceC);
         
            HitC=IsNumeric(rawContents[27]) ? int.Parse(rawContents[27]):0;
            int.TryParse(contents[27],out HitC);
         
            MissC=IsNumeric(rawContents[28]) ? int.Parse(rawContents[28]):0;
            int.TryParse(contents[28],out MissC);
         
            SkillAddPerAC=IsNumeric(rawContents[29]) ? int.Parse(rawContents[29]):0;
            int.TryParse(contents[29],out SkillAddPerAC);
         
            SkillAddPerBC=IsNumeric(rawContents[30]) ? int.Parse(rawContents[30]):0;
            int.TryParse(contents[30],out SkillAddPerBC);
         
            SkillAddPerCC=IsNumeric(rawContents[31]) ? int.Parse(rawContents[31]):0;
            int.TryParse(contents[31],out SkillAddPerCC);
         
            SkillAddPerDC=IsNumeric(rawContents[32]) ? int.Parse(rawContents[32]):0;
            int.TryParse(contents[32],out SkillAddPerDC);
         
            SkillAddPerEC=IsNumeric(rawContents[33]) ? int.Parse(rawContents[33]):0;
            int.TryParse(contents[33],out SkillAddPerEC);
         
            SkillAddPerFC=IsNumeric(rawContents[34]) ? int.Parse(rawContents[34]):0;
            int.TryParse(contents[34],out SkillAddPerFC);
         
            SkillAddPerGC=IsNumeric(rawContents[35]) ? int.Parse(rawContents[35]):0;
            int.TryParse(contents[35],out SkillAddPerGC);
         
            SkillReducePerAC=IsNumeric(rawContents[36]) ? int.Parse(rawContents[36]):0;
            int.TryParse(contents[36],out SkillReducePerAC);
         
            SkillReducePerBC=IsNumeric(rawContents[37]) ? int.Parse(rawContents[37]):0;
            int.TryParse(contents[37],out SkillReducePerBC);
         
            SkillReducePerCC=IsNumeric(rawContents[38]) ? int.Parse(rawContents[38]):0;
            int.TryParse(contents[38],out SkillReducePerCC);
         
            SkillReducePerDC=IsNumeric(rawContents[39]) ? int.Parse(rawContents[39]):0;
            int.TryParse(contents[39],out SkillReducePerDC);
         
            SkillReducePerEC=IsNumeric(rawContents[40]) ? int.Parse(rawContents[40]):0;
            int.TryParse(contents[40],out SkillReducePerEC);
         
            SkillReducePerFC=IsNumeric(rawContents[41]) ? int.Parse(rawContents[41]):0;
            int.TryParse(contents[41],out SkillReducePerFC);
         
            SkillReducePerGC=IsNumeric(rawContents[42]) ? int.Parse(rawContents[42]):0;
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
      }
   }
}
            int.TryParse(contents[42],out SkillReducePerGC);
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
      }
   }
}