少年修仙传客户端代码仓库
client_Wu Xijin
2019-02-12 1aeb815836d84ecfddf761a47862efebbba0ad03
Core/GameEngine/Model/Config/FuncSwitchConfig.cs
@@ -1,41 +1,43 @@
//--------------------------------------------------------
//    [Author]:         第二世界
//    [  Date ]:         Monday, December 03, 2018
//--------------------------------------------------------
using UnityEngine;
using System;
namespace TableConfig {
   public partial class FuncSwitchConfig : ConfigBase {
      public int ID { get ; private set ; }
      public string AppIdSwitch { 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 FuncSwitchConfig : ConfigBase {
      public int ID;
      public string AppIdSwitch;
      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);
         
            AppIdSwitch = rawContents[1].Trim();
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
      }
   }
}
            AppIdSwitch = contents[1];
            }
            catch (Exception ex)
            {
                DebugEx.Log(ex);
            }
      }
   }
}