//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Tuesday, January 16, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class RuleConfig : ConfigBase { public int ID { get ; private set ; } public string Title { get ; private set; } public string Description { get ; private set; } public override string getKey() { return ID.ToString(); } public override void Parse() { try { ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; Title = rawContents[1].Trim(); Description = rawContents[2].Trim(); } catch (Exception ex) { DebugEx.Log(ex); } } } }