//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Monday, July 16, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class LVAawrdConfig : ConfigBase { public int RewardID { get ; private set ; } public int LV { get ; private set ; } public int LimitNUM { get ; private set ; } public string Reward { get ; private set; } public int VIPLimit { get ; private set ; } public string VIPAward { get ; private set; } public override string getKey() { return RewardID.ToString(); } public override void Parse() { try { RewardID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; LV=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; LimitNUM=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; Reward = rawContents[3].Trim(); VIPLimit=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; VIPAward = rawContents[5].Trim(); } catch (Exception ex) { DebugEx.Log(ex); } } } }