//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Wednesday, August 08, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class AttrFruitConfig : ConfigBase { public int ID { get ; private set ; } public int FuncID { get ; private set ; } public int MaxUseCnt { get ; private set ; } public int RecycleExp { get ; private set ; } public int Sort { get ; private set ; } public override string getKey() { return ID.ToString(); } public override void Parse() { try { ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; FuncID=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; MaxUseCnt=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; RecycleExp=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; Sort=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; } catch (Exception ex) { DebugEx.Log(ex); } } } }