//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Friday, May 18, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class DungeonConfig : ConfigBase { public int ID { get ; private set ; } public int DataMapID { get ; private set ; } public int LineID { get ; private set ; } public int MapID { get ; private set ; } public string FBName { get ; private set; } public int LVLimitMin { get ; private set ; } public int LVLimitMax { get ; private set ; } public int JobRankLimit { get ; private set ; } public int TicketID { get ; private set ; } public int[] TicketCostCnt; public int TicketPrice { get ; private set ; } public int SweepLVLimit { get ; private set ; } public int SweepItemID { get ; private set ; } public int SweepCostCnt { get ; private set ; } public string StepTime { get ; private set; } public int[] BossActorID; public int[] Rewards; public string Description { get ; private set; } public int AutomaticATK { get ; private set ; } public int MapButton { get ; private set ; } public int ShowNewItemTip { get ; private set ; } public override string getKey() { return ID.ToString(); } public override void Parse() { try { ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; DataMapID=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; LineID=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; MapID=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; FBName = rawContents[4].Trim(); LVLimitMin=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0; LVLimitMax=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0; JobRankLimit=IsNumeric(rawContents[7]) ? int.Parse(rawContents[7]):0; TicketID=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0; string[] TicketCostCntStringArray = rawContents[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); TicketCostCnt = new int[TicketCostCntStringArray.Length]; for (int i=0;i