//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Wednesday, January 17, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class ResourcesBackConfig : ConfigBase { public int ID { get ; private set ; } public int RelatedID { get ; private set ; } public int CanBackTimes { get ; private set ; } public int NormalCostJade { get ; private set ; } public int VipCostJade { get ; private set ; } public string JadeReward { get ; private set; } public int CostCopper { get ; private set ; } public string CopperReward { get ; private set; } public string RewardList { get ; private set; } public override string getKey() { return ID.ToString(); } public override void Parse() { try { ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; RelatedID=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; CanBackTimes=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; NormalCostJade=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; VipCostJade=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; JadeReward = rawContents[5].Trim(); CostCopper=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0; CopperReward = rawContents[7].Trim(); RewardList = rawContents[8].Trim(); } catch (Exception ex) { DesignDebug.Log(ex); } } } }