| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Monday, October 15, 2018 |
| | | // [ Date ]: Monday, November 12, 2018 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | |
| | | |
| | | 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 ; } |
| | |
| | | |
| | | FBName = rawContents[1].Trim(); |
| | | |
| | | OpenServerDay=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | CanEnterTime=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | |
| | | CanEnterTime=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | DayTimes=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | |
| | | DayTimes=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; |
| | | DayReKind=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; |
| | | |
| | | DayReKind=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0; |
| | | WeekTimes=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0; |
| | | |
| | | WeekTimes=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0; |
| | | WeekReKind=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0; |
| | | |
| | | WeekReKind=IsNumeric(rawContents[7]) ? int.Parse(rawContents[7]):0; |
| | | FBType=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); |
| | | string[] RewardRateStringArray = rawContents[8].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | RewardRate = new int[RewardRateStringArray.Length]; |
| | | for (int i=0;i<RewardRateStringArray.Length;i++) |
| | | { |
| | | int.TryParse(RewardRateStringArray[i],out RewardRate[i]); |
| | | } |
| | | |
| | | BuyTimesID=IsNumeric(rawContents[10]) ? int.Parse(rawContents[10]):0; |
| | | BuyTimesID=IsNumeric(rawContents[9]) ? int.Parse(rawContents[9]):0; |
| | | |
| | | ExtraTimesID=IsNumeric(rawContents[11]) ? int.Parse(rawContents[11]):0; |
| | | ExtraTimesID=IsNumeric(rawContents[10]) ? int.Parse(rawContents[10]):0; |
| | | |
| | | DeathTime=IsNumeric(rawContents[12]) ? int.Parse(rawContents[12]):0; |
| | | DeathTime=IsNumeric(rawContents[11]) ? int.Parse(rawContents[11]):0; |
| | | |
| | | GuardPick=IsNumeric(rawContents[13]) ? int.Parse(rawContents[13]):0; |
| | | GuardPick=IsNumeric(rawContents[12]) ? int.Parse(rawContents[12]):0; |
| | | |
| | | DoFight=IsNumeric(rawContents[14]) ? int.Parse(rawContents[14]):0; |
| | | DoFight=IsNumeric(rawContents[13]) ? int.Parse(rawContents[13]):0; |
| | | |
| | | HelpPoint=IsNumeric(rawContents[15]) ? int.Parse(rawContents[15]):0; |
| | | HelpPoint=IsNumeric(rawContents[14]) ? int.Parse(rawContents[14]):0; |
| | | |
| | | DelayTime=IsNumeric(rawContents[16]) ? int.Parse(rawContents[16]):0; |
| | | DelayTime=IsNumeric(rawContents[15]) ? int.Parse(rawContents[15]):0; |
| | | |
| | | Movable=IsNumeric(rawContents[17]) ? int.Parse(rawContents[17]):0; |
| | | Movable=IsNumeric(rawContents[16]) ? int.Parse(rawContents[16]):0; |
| | | |
| | | Skillable=IsNumeric(rawContents[18]) ? int.Parse(rawContents[18]):0; |
| | | Skillable=IsNumeric(rawContents[17]) ? int.Parse(rawContents[17]):0; |
| | | |
| | | SelectPlayerable=IsNumeric(rawContents[19]) ? int.Parse(rawContents[19]):0; |
| | | SelectPlayerable=IsNumeric(rawContents[18]) ? int.Parse(rawContents[18]):0; |
| | | |
| | | ExitDescription = rawContents[20].Trim(); |
| | | ExitDescription = rawContents[19].Trim(); |
| | | |
| | | PanelImg = rawContents[21].Trim(); |
| | | PanelImg = rawContents[20].Trim(); |
| | | |
| | | string[] ElixirHintStringArray = rawContents[22].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] ElixirHintStringArray = rawContents[21].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | ElixirHint = new int[ElixirHintStringArray.Length]; |
| | | for (int i=0;i<ElixirHintStringArray.Length;i++) |
| | | { |