//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Friday, August 10, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class RealmConfig : ConfigBase { public int Lv { get ; private set ; } public string Name { get ; private set; } public int IsBigRealm { get ; private set ; } public int NeedPoint { get ; private set ; } public int NeedGood { get ; private set ; } public int NeedNum { get ; private set ; } public string NeedActiveTreasure { get ; private set; } public int[] AddAttrType; public int[] AddAttrNum; public int BossID { get ; private set ; } public string Img { get ; private set; } public string SitTime { get ; private set; } public int Quality { get ; private set ; } public int FightPower { get ; private set ; } public int specialProperty { get ; private set ; } public int effectId { get ; private set ; } public override string getKey() { return Lv.ToString(); } public override void Parse() { try { Lv=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; Name = rawContents[1].Trim(); IsBigRealm=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; NeedPoint=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; NeedGood=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; NeedNum=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0; NeedActiveTreasure = rawContents[6].Trim(); string[] AddAttrTypeStringArray = rawContents[7].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); AddAttrType = new int[AddAttrTypeStringArray.Length]; for (int i=0;i