| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Thursday, August 30, 2018
|
| | | // [ Date ]: Tuesday, February 12, 2019
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | | using System;
|
| | |
|
| | | namespace TableConfig
|
| | | {
|
| | | 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[] RewardCountDescriptions;
|
| | | 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 partial class DungeonConfig : ConfigBase {
|
| | |
|
| | | public override string getKey()
|
| | | public int ID;
|
| | | public int DataMapID;
|
| | | public int LineID;
|
| | | public int MapID;
|
| | | public string FBName;
|
| | | public int LVLimitMin;
|
| | | public int LVLimitMax;
|
| | | public int JobRankLimit;
|
| | | public int TicketID;
|
| | | public int[] TicketCostCnt;
|
| | | public int TicketPrice;
|
| | | public int SweepLVLimit;
|
| | | public int SweepItemID;
|
| | | public int SweepCostCnt;
|
| | | public string StepTime;
|
| | | public int[] BossActorID;
|
| | | public int[] Rewards;
|
| | | public string[] RewardCountDescriptions;
|
| | | public string Description;
|
| | | public int AutomaticATK;
|
| | | public int MapButton;
|
| | | public int ShowNewItemTip;
|
| | |
|
| | | public override string getKey()
|
| | | {
|
| | | return ID.ToString();
|
| | | }
|
| | |
|
| | | public override void Parse()
|
| | | {
|
| | | try
|
| | | public override void Parse(string content) {
|
| | | try
|
| | | {
|
| | | ID = IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]) : 0;
|
| | | var contents = content.Split('\t');
|
| | |
|
| | | 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 < TicketCostCntStringArray.Length; i++)
|
| | | {
|
| | | int.TryParse(TicketCostCntStringArray[i], out TicketCostCnt[i]);
|
| | | }
|
| | |
|
| | | TicketPrice = IsNumeric(rawContents[10]) ? int.Parse(rawContents[10]) : 0;
|
| | |
|
| | | SweepLVLimit = IsNumeric(rawContents[11]) ? int.Parse(rawContents[11]) : 0;
|
| | |
|
| | | SweepItemID = IsNumeric(rawContents[12]) ? int.Parse(rawContents[12]) : 0;
|
| | |
|
| | | SweepCostCnt = IsNumeric(rawContents[13]) ? int.Parse(rawContents[13]) : 0;
|
| | |
|
| | | StepTime = rawContents[14].Trim();
|
| | |
|
| | | string[] BossActorIDStringArray = rawContents[15].Trim().Split(StringUtility.splitSeparator, StringSplitOptions.RemoveEmptyEntries);
|
| | | BossActorID = new int[BossActorIDStringArray.Length];
|
| | | for (int i = 0; i < BossActorIDStringArray.Length; i++)
|
| | | {
|
| | | int.TryParse(BossActorIDStringArray[i], out BossActorID[i]);
|
| | | }
|
| | |
|
| | | string[] RewardsStringArray = rawContents[16].Trim().Split(StringUtility.splitSeparator, StringSplitOptions.RemoveEmptyEntries);
|
| | | Rewards = new int[RewardsStringArray.Length];
|
| | | for (int i = 0; i < RewardsStringArray.Length; i++)
|
| | | {
|
| | | int.TryParse(RewardsStringArray[i], out Rewards[i]);
|
| | | }
|
| | |
|
| | | RewardCountDescriptions = rawContents[17].Trim().Split(StringUtility.splitSeparator, StringSplitOptions.RemoveEmptyEntries);
|
| | |
|
| | | Description = rawContents[18].Trim();
|
| | |
|
| | | AutomaticATK = IsNumeric(rawContents[19]) ? int.Parse(rawContents[19]) : 0;
|
| | |
|
| | | MapButton = IsNumeric(rawContents[20]) ? int.Parse(rawContents[20]) : 0;
|
| | |
|
| | | ShowNewItemTip = IsNumeric(rawContents[21]) ? int.Parse(rawContents[21]) : 0;
|
| | | int.TryParse(contents[0],out ID);
|
| | | |
| | | int.TryParse(contents[1],out DataMapID);
|
| | | |
| | | int.TryParse(contents[2],out LineID);
|
| | | |
| | | int.TryParse(contents[3],out MapID);
|
| | | |
| | | FBName = contents[4];
|
| | | |
| | | int.TryParse(contents[5],out LVLimitMin);
|
| | | |
| | | int.TryParse(contents[6],out LVLimitMax);
|
| | | |
| | | int.TryParse(contents[7],out JobRankLimit);
|
| | | |
| | | int.TryParse(contents[8],out TicketID);
|
| | | |
| | | var TicketCostCntStringArray = contents[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | TicketCostCnt = new int[TicketCostCntStringArray.Length]; |
| | | for (int i=0;i<TicketCostCntStringArray.Length;i++) |
| | | { |
| | | int.TryParse(TicketCostCntStringArray[i],out TicketCostCnt[i]); |
| | | }
|
| | | |
| | | int.TryParse(contents[10],out TicketPrice);
|
| | | |
| | | int.TryParse(contents[11],out SweepLVLimit);
|
| | | |
| | | int.TryParse(contents[12],out SweepItemID);
|
| | | |
| | | int.TryParse(contents[13],out SweepCostCnt);
|
| | | |
| | | StepTime = contents[14];
|
| | | |
| | | var BossActorIDStringArray = contents[15].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | BossActorID = new int[BossActorIDStringArray.Length]; |
| | | for (int i=0;i<BossActorIDStringArray.Length;i++) |
| | | { |
| | | int.TryParse(BossActorIDStringArray[i],out BossActorID[i]); |
| | | }
|
| | | |
| | | var RewardsStringArray = contents[16].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | Rewards = new int[RewardsStringArray.Length]; |
| | | for (int i=0;i<RewardsStringArray.Length;i++) |
| | | { |
| | | int.TryParse(RewardsStringArray[i],out Rewards[i]); |
| | | }
|
| | | |
| | | RewardCountDescriptions = contents[17].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
| | | |
| | | Description = contents[18];
|
| | | |
| | | int.TryParse(contents[19],out AutomaticATK);
|
| | | |
| | | int.TryParse(contents[20],out MapButton);
|
| | | |
| | | int.TryParse(contents[21],out ShowNewItemTip);
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | }
|
| | |
|