| | |
| | | using System; |
| | | using UnityEngine; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | |
| | | public partial class DungeonConfig |
| | | { |
| | | |
| | | public readonly int ID;
|
| | | public readonly int DataMapID;
|
| | | public readonly int LineID;
|
| | | public readonly int MapID;
|
| | | public readonly string FBName;
|
| | | public readonly int LVLimitMin;
|
| | | public readonly int LVLimitMax;
|
| | | public readonly int JobRankLimit;
|
| | | public readonly int TicketID;
|
| | | public readonly int[] TicketCostCnt;
|
| | | public readonly int TicketPrice;
|
| | | public readonly int SweepLVLimit;
|
| | | public readonly int SweepItemID;
|
| | | public readonly int SweepCostCnt;
|
| | | public readonly string StepTime;
|
| | | public readonly string RefreshNPC;
|
| | | public readonly int[] BossActorID;
|
| | | public readonly int[] Rewards;
|
| | | public readonly string[] RewardCountDescriptions;
|
| | | public readonly string Description;
|
| | | public readonly int AutomaticATK;
|
| | | public readonly int MapButton;
|
| | | public readonly int ID; |
| | | public readonly int DataMapID; |
| | | public readonly int LineID; |
| | | public readonly int MapID; |
| | | public readonly string FBName; |
| | | public readonly int LVLimitMin; |
| | | public readonly int LVLimitMax; |
| | | public readonly int JobRankLimit; |
| | | public readonly int TicketID; |
| | | public readonly int[] TicketCostCnt; |
| | | public readonly int TicketPrice; |
| | | public readonly int SweepLVLimit; |
| | | public readonly int SweepItemID; |
| | | public readonly int SweepCostCnt; |
| | | public readonly string StepTime; |
| | | public readonly string RefreshNPC; |
| | | public readonly int[] BossActorID; |
| | | public readonly int[] Rewards; |
| | | public readonly string[] RewardCountDescriptions; |
| | | public readonly string Description; |
| | | public readonly int AutomaticATK; |
| | | public readonly int MapButton; |
| | | public readonly int ShowNewItemTip; |
| | | |
| | | public DungeonConfig() |
| | |
| | | { |
| | | var tables = input.Split('\t'); |
| | | |
| | | int.TryParse(tables[0],out ID); |
| | |
|
| | | int.TryParse(tables[1],out DataMapID); |
| | |
|
| | | int.TryParse(tables[2],out LineID); |
| | |
|
| | | int.TryParse(tables[3],out MapID); |
| | |
|
| | | FBName = tables[4];
|
| | |
|
| | | int.TryParse(tables[5],out LVLimitMin); |
| | |
|
| | | int.TryParse(tables[6],out LVLimitMax); |
| | |
|
| | | int.TryParse(tables[7],out JobRankLimit); |
| | |
|
| | | int.TryParse(tables[8],out TicketID); |
| | |
|
| | | int.TryParse(tables[0],out ID); |
| | | |
| | | int.TryParse(tables[1],out DataMapID); |
| | | |
| | | int.TryParse(tables[2],out LineID); |
| | | |
| | | int.TryParse(tables[3],out MapID); |
| | | |
| | | FBName = tables[4]; |
| | | |
| | | int.TryParse(tables[5],out LVLimitMin); |
| | | |
| | | int.TryParse(tables[6],out LVLimitMax); |
| | | |
| | | int.TryParse(tables[7],out JobRankLimit); |
| | | |
| | | int.TryParse(tables[8],out TicketID); |
| | | |
| | | string[] TicketCostCntStringArray = tables[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(tables[10],out TicketPrice); |
| | |
|
| | | int.TryParse(tables[11],out SweepLVLimit); |
| | |
|
| | | int.TryParse(tables[12],out SweepItemID); |
| | |
|
| | | int.TryParse(tables[13],out SweepCostCnt); |
| | |
|
| | | StepTime = tables[14];
|
| | |
|
| | | RefreshNPC = tables[15];
|
| | |
|
| | | } |
| | | |
| | | int.TryParse(tables[10],out TicketPrice); |
| | | |
| | | int.TryParse(tables[11],out SweepLVLimit); |
| | | |
| | | int.TryParse(tables[12],out SweepItemID); |
| | | |
| | | int.TryParse(tables[13],out SweepCostCnt); |
| | | |
| | | StepTime = tables[14]; |
| | | |
| | | RefreshNPC = tables[15]; |
| | | |
| | | string[] BossActorIDStringArray = tables[16].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 = tables[17].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 = tables[18].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
| | |
|
| | | Description = tables[19];
|
| | |
|
| | | int.TryParse(tables[20],out AutomaticATK); |
| | |
|
| | | int.TryParse(tables[21],out MapButton); |
| | |
|
| | | } |
| | | |
| | | RewardCountDescriptions = tables[18].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | |
| | | Description = tables[19]; |
| | | |
| | | int.TryParse(tables[20],out AutomaticATK); |
| | | |
| | | int.TryParse(tables[21],out MapButton); |
| | | |
| | | int.TryParse(tables[22],out ShowNewItemTip); |
| | | } |
| | | catch (Exception ex) |