| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Wednesday, November 28, 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 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 ; }
|
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Tuesday, February 12, 2019
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | | using System;
|
| | |
|
| | | namespace TableConfig {
|
| | |
|
| | | |
| | | public partial class DungeonOpenTimeConfig : ConfigBase {
|
| | |
|
| | | public int DataMapID;
|
| | | public string FBName;
|
| | | public int CanEnterTime;
|
| | | public int DayTimes;
|
| | | public int DayReKind;
|
| | | public int WeekTimes;
|
| | | public int WeekReKind;
|
| | | public int FBType;
|
| | | 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 FBPoint { get ; private set ; }
|
| | | public int HelpPoint { get ; private set ; }
|
| | | public int DayHelpCountMax { 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; |
| | | public int BuyTimesID;
|
| | | public int ExtraTimesID;
|
| | | public int DeathTime;
|
| | | public int GuardPick;
|
| | | public int DoFight;
|
| | | public int FBPoint;
|
| | | public int HelpPoint;
|
| | | public int DayHelpCountMax;
|
| | | public int DelayTime;
|
| | | public int Movable;
|
| | | public int Skillable;
|
| | | public int SelectPlayerable;
|
| | | public string ExitDescription;
|
| | | public string PanelImg;
|
| | | public int[] ElixirHint;
|
| | |
|
| | | public override string getKey()
|
| | | {
|
| | | return DataMapID.ToString();
|
| | | }
|
| | |
|
| | | public override void Parse(string content) {
|
| | | try
|
| | | {
|
| | | var contents = content.Split('\t');
|
| | |
|
| | | int.TryParse(contents[0],out DataMapID);
|
| | |
|
| | | FBName = rawContents[1].Trim();
|
| | | FBName = contents[1];
|
| | |
|
| | | CanEnterTime=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | int.TryParse(contents[2],out CanEnterTime);
|
| | |
|
| | | DayTimes=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | int.TryParse(contents[3],out DayTimes);
|
| | |
|
| | | DayReKind=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; |
| | | int.TryParse(contents[4],out DayReKind);
|
| | |
|
| | | WeekTimes=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0; |
| | | int.TryParse(contents[5],out WeekTimes);
|
| | |
|
| | | WeekReKind=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0; |
| | | int.TryParse(contents[6],out WeekReKind);
|
| | |
|
| | | FBType=IsNumeric(rawContents[7]) ? int.Parse(rawContents[7]):0; |
| | | int.TryParse(contents[7],out FBType);
|
| | |
|
| | | string[] RewardRateStringArray = rawContents[8].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var RewardRateStringArray = contents[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[9]) ? int.Parse(rawContents[9]):0; |
| | | int.TryParse(contents[9],out BuyTimesID);
|
| | |
|
| | | ExtraTimesID=IsNumeric(rawContents[10]) ? int.Parse(rawContents[10]):0; |
| | | int.TryParse(contents[10],out ExtraTimesID);
|
| | |
|
| | | DeathTime=IsNumeric(rawContents[11]) ? int.Parse(rawContents[11]):0; |
| | | int.TryParse(contents[11],out DeathTime);
|
| | |
|
| | | GuardPick=IsNumeric(rawContents[12]) ? int.Parse(rawContents[12]):0; |
| | | int.TryParse(contents[12],out GuardPick);
|
| | |
|
| | | DoFight=IsNumeric(rawContents[13]) ? int.Parse(rawContents[13]):0; |
| | | int.TryParse(contents[13],out DoFight);
|
| | |
|
| | | FBPoint=IsNumeric(rawContents[14]) ? int.Parse(rawContents[14]):0; |
| | | int.TryParse(contents[14],out FBPoint);
|
| | |
|
| | | HelpPoint=IsNumeric(rawContents[15]) ? int.Parse(rawContents[15]):0; |
| | | int.TryParse(contents[15],out HelpPoint);
|
| | |
|
| | | DayHelpCountMax=IsNumeric(rawContents[16]) ? int.Parse(rawContents[16]):0; |
| | | int.TryParse(contents[16],out DayHelpCountMax);
|
| | |
|
| | | DelayTime=IsNumeric(rawContents[17]) ? int.Parse(rawContents[17]):0; |
| | | int.TryParse(contents[17],out DelayTime);
|
| | |
|
| | | Movable=IsNumeric(rawContents[18]) ? int.Parse(rawContents[18]):0; |
| | | int.TryParse(contents[18],out Movable);
|
| | |
|
| | | Skillable=IsNumeric(rawContents[19]) ? int.Parse(rawContents[19]):0; |
| | | int.TryParse(contents[19],out Skillable);
|
| | |
|
| | | SelectPlayerable=IsNumeric(rawContents[20]) ? int.Parse(rawContents[20]):0; |
| | | int.TryParse(contents[20],out SelectPlayerable);
|
| | |
|
| | | ExitDescription = rawContents[21].Trim();
|
| | | ExitDescription = contents[21];
|
| | |
|
| | | PanelImg = rawContents[22].Trim();
|
| | | PanelImg = contents[22];
|
| | |
|
| | | string[] ElixirHintStringArray = rawContents[23].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | var ElixirHintStringArray = contents[23].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | ElixirHint = new int[ElixirHintStringArray.Length]; |
| | | for (int i=0;i<ElixirHintStringArray.Length;i++) |
| | | { |
| | | int.TryParse(ElixirHintStringArray[i],out ElixirHint[i]); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | }
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|