少年修仙传客户端代码仓库
client_Wu Xijin
2018-10-26 82931aabaaa3e479bc04e11630a77cd9c9dd5fe3
Core/GameEngine/Model/Config/PetInfoConfig.cs
@@ -1,6 +1,6 @@
//--------------------------------------------------------
//    [Author]:         第二世界
//    [  Date ]:         Tuesday, July 17, 2018
//    [  Date ]:         Thursday, October 25, 2018
//--------------------------------------------------------
using UnityEngine;
@@ -9,8 +9,8 @@
namespace TableConfig {
    
   public partial class PetInfoConfig : ConfigBase {
   public partial class PetInfoConfig : ConfigBase {
      public int ID { get ; private set ; }
      public string Name { get ; private set; } 
      public int Quality { get ; private set ; }
@@ -28,15 +28,16 @@
      public string InitFightPower { get ; private set; } 
      public int ShowFightPower { get ; private set ; }
      public int Sort { get ; private set ; }
      public string DescribeIconKey { get ; private set; }
      public override string getKey()
        {
            return ID.ToString();
      public override string getKey()
        {
            return ID.ToString();
        }
      public override void Parse() {
         try
            {
         try
            {
                ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; 
         
            Name = rawContents[1].Trim();
@@ -75,10 +76,12 @@
            ShowFightPower=IsNumeric(rawContents[15]) ? int.Parse(rawContents[15]):0; 
         
            Sort=IsNumeric(rawContents[16]) ? int.Parse(rawContents[16]):0; 
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            DescribeIconKey = rawContents[17].Trim();
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
      }