//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Thursday, July 26, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class XBGetItemConfig : ConfigBase { public int ID { get ; private set ; } public int TreasureType { get ; private set ; } public int MinLV { get ; private set ; } public string GridItemInfo { get ; private set; } public string JobItemList { get ; private set; } public int LuckyGridNum { get ; private set ; } public override string getKey() { return ID.ToString(); } public override void Parse() { try { ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; TreasureType=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; MinLV=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; GridItemInfo = rawContents[3].Trim(); JobItemList = rawContents[4].Trim(); LuckyGridNum=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0; } catch (Exception ex) { DebugEx.Log(ex); } } } }