少年修仙传客户端代码仓库
client_Wu Xijin
2019-02-12 1aeb815836d84ecfddf761a47862efebbba0ad03
Core/GameEngine/Model/Config/EquipWashSpecConfig.cs
@@ -1,53 +1,55 @@
//--------------------------------------------------------
//    [Author]:         第二世界
//    [  Date ]:         Thursday, June 14, 2018
//--------------------------------------------------------
using UnityEngine;
using System;
namespace TableConfig {
//--------------------------------------------------------
//    [Author]:         第二世界
//    [  Date ]:         Tuesday, February 12, 2019
//--------------------------------------------------------
using UnityEngine;
using System;
namespace TableConfig {
   public partial class EquipWashSpecConfig : ConfigBase {
      public int id { get ; private set ; }
      public int typeNeed { get ; private set ; }
      public int levelNeed { get ; private set ; }
      public string attByLevel { get ; private set; }
      public string attByLevelValue { get ; private set; }
      public int MasterLV { get ; private set ; }
      public int id;
      public int typeNeed;
      public int levelNeed;
      public string attByLevel;
      public string attByLevelValue;
      public int MasterLV;
      public override string getKey()
        {
            return id.ToString();
        }
      public override void Parse() {
        }
      public override void Parse(string content) {
         try
            {
                id=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
                var contents = content.Split('\t');
                int.TryParse(contents[0],out id);
         
            typeNeed=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
            int.TryParse(contents[1],out typeNeed);
         
            levelNeed=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0;
            int.TryParse(contents[2],out levelNeed);
         
            attByLevel = rawContents[3].Trim();
            attByLevel = contents[3];
         
            attByLevelValue = rawContents[4].Trim();
            attByLevelValue = contents[4];
         
            MasterLV=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0;
            int.TryParse(contents[5],out MasterLV);
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
      }
   }
}
            }
      }
   }
}