//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Tuesday, May 15, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class TreasureFindHostConfig : ConfigBase { public int ID { get ; private set ; } public int Type { get ; private set ; } public int NeedCnt { get ; private set ; } public string Condition { get ; private set; } public int MagicWeaponID { get ; private set ; } public string AwardItemList { get ; private set; } public string Money { get ; private set; } public string AdviceIds { get ; private set; } public int JumpID { get ; private set ; } public string[] EffectIconKeys; public override string getKey() { return ID.ToString(); } public override void Parse() { try { ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; Type=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; NeedCnt=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; Condition = rawContents[3].Trim(); MagicWeaponID=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; AwardItemList = rawContents[5].Trim(); Money = rawContents[6].Trim(); AdviceIds = rawContents[7].Trim(); JumpID=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0; EffectIconKeys = rawContents[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); } catch (Exception ex) { DebugEx.Log(ex); } } } }