//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Thursday, December 27, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class KingTreasureItemConfig : ConfigBase { public int itemId { get ; private set ; } public int rewardLevel { get ; private set ; } public string description { get ; private set; } public string qualityName { get ; private set; } public override string getKey() { return itemId.ToString(); } public override void Parse() { try { itemId=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; rewardLevel=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; description = rawContents[2].Trim(); qualityName = rawContents[3].Trim(); } catch (Exception ex) { DebugEx.Log(ex); } } } }