//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Friday, March 02, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class DungeonOpenTimeConfig : ConfigBase { public int DataMapID { get ; private set ; } public string FBName { get ; private set; } public int OpenServerDay { get ; private set ; } public int CanEnterTime { get ; private set ; } public int DayTimes { get ; private set ; } public int DayReKind { get ; private set ; } public int WeekTimes { get ; private set ; } public int WeekReKind { get ; private set ; } public int FBType { get ; private set ; } public int[] RewardRate; public int BuyTimesID { get ; private set ; } public int ExtraTimesID { get ; private set ; } public int DeathTime { get ; private set ; } public int GuardPick { get ; private set ; } public int DoFight { get ; private set ; } public int HelpPoint { get ; private set ; } public int DelayTime { get ; private set ; } public int Movable { get ; private set ; } public int Skillable { get ; private set ; } public int SelectPlayerable { get ; private set ; } public string ExitDescription { get ; private set; } public string PanelImg { get ; private set; } public int[] ElixirHint; public override string getKey() { return DataMapID.ToString(); } public override void Parse() { try { DataMapID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; FBName = rawContents[1].Trim(); OpenServerDay=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; CanEnterTime=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; DayTimes=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; DayReKind=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0; WeekTimes=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0; WeekReKind=IsNumeric(rawContents[7]) ? int.Parse(rawContents[7]):0; FBType=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0; string[] RewardRateStringArray = rawContents[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); RewardRate = new int[RewardRateStringArray.Length]; for (int i=0;i