| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Friday, May 18, 2018 |
| | | // [ Date ]: Thursday, August 30, 2018
|
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | | using System; |
| | | |
| | | namespace TableConfig { |
| | | namespace TableConfig
|
| | | {
|
| | | |
| | | |
| | | public partial class DungeonConfig : ConfigBase {
|
| | |
|
| | | public partial class DungeonConfig : ConfigBase
|
| | | {
|
| | | public int ID { get ; private set ; }
|
| | | public int DataMapID { get ; private set ; }
|
| | | public int LineID { get ; private set ; }
|
| | |
| | | public string StepTime { get ; private set; }
|
| | | public int[] BossActorID;
|
| | | public int[] Rewards;
|
| | | public string[] RewardCountDescriptions;
|
| | | public string Description { get ; private set; }
|
| | | public int AutomaticATK { get ; private set ; }
|
| | | public int MapButton { get ; private set ; }
|
| | |
| | | return ID.ToString();
|
| | | } |
| | | |
| | | public override void Parse() { |
| | | public override void Parse()
|
| | | {
|
| | | try
|
| | | {
|
| | | ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
|
| | |
| | | int.TryParse(RewardsStringArray[i],out Rewards[i]); |
| | | }
|
| | |
|
| | | Description = rawContents[17].Trim();
|
| | | RewardCountDescriptions = rawContents[17].Trim().Split(StringUtility.splitSeparator, StringSplitOptions.RemoveEmptyEntries);
|
| | |
|
| | | AutomaticATK=IsNumeric(rawContents[18]) ? int.Parse(rawContents[18]):0; |
| | | Description = rawContents[18].Trim();
|
| | |
|
| | | MapButton=IsNumeric(rawContents[19]) ? int.Parse(rawContents[19]):0; |
| | | AutomaticATK = IsNumeric(rawContents[19]) ? int.Parse(rawContents[19]) : 0;
|
| | |
|
| | | ShowNewItemTip=IsNumeric(rawContents[20]) ? int.Parse(rawContents[20]):0; |
| | | MapButton = IsNumeric(rawContents[20]) ? int.Parse(rawContents[20]) : 0;
|
| | |
|
| | | ShowNewItemTip = IsNumeric(rawContents[21]) ? int.Parse(rawContents[21]) : 0;
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|