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