少年修仙传客户端代码仓库
client_linchunjie
2018-11-02 3ea77bcede501037ec86c8afd28268ee16a35437
Core/GameEngine/Model/Config/PetClassCostConfig.cs
@@ -1,6 +1,6 @@
//--------------------------------------------------------
//    [Author]:         第二世界
//    [  Date ]:         Saturday, January 06, 2018
//    [  Date ]:         Thursday, November 01, 2018
//--------------------------------------------------------
using UnityEngine;
@@ -11,11 +11,12 @@
    
   public partial class PetClassCostConfig : ConfigBase {
      public int ID { get ; private set ; }
      public int PetID { get ; private set ; }
      public int Rank { get ; private set ; }
      public int UpNeedExp { get ; private set ; }
      public int AtkAdd { get ; private set ; }
      public int ID { get ; private set ; }
      public int PetID { get ; private set ; }
      public int Rank { get ; private set ; }
      public int UpNeedExp { get ; private set ; }
      public int AtkAdd { get ; private set ; }
      public int NeedExpTotal { get ; private set ; }
      public override string getKey()
        {
@@ -25,15 +26,17 @@
      public override void Parse() {
         try
            {
                ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
            PetID=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
            Rank=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0;
            UpNeedExp=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0;
            AtkAdd=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0;
                ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
            PetID=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
            Rank=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0;
            UpNeedExp=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0;
            AtkAdd=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0;
            NeedExpTotal=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0;
            }
            catch (Exception ex)
            {