| //-------------------------------------------------------- | 
| //    [Author]:           YYL | 
| //    [  Date ]:           Thursday, October 9, 2025 | 
| //-------------------------------------------------------- | 
|   | 
| using System.Collections.Generic; | 
| using System; | 
| using UnityEngine; | 
| using LitJson; | 
|   | 
| public partial class DungeonConfig : ConfigBase<int, DungeonConfig> | 
| { | 
|     static DungeonConfig() | 
|     { | 
|         // 访问过静态构造函数 | 
|         visit = true;  | 
|     } | 
|   | 
|     public int ID; | 
|     public int DataMapID; | 
|     public int LineID; | 
|     public int LVLimitMin; | 
|     public int[][] PassAwardList; | 
|     public int[][] SweepAwardList; | 
|     public int[] LineupIDList; | 
|     public int NPCLV; | 
|     public float Difficulty; | 
|     public long FightPower; | 
|   | 
|     public override int LoadKey(string _key) | 
|     { | 
|         int key = GetKey(_key); | 
|         return key; | 
|     } | 
|   | 
|     public override void LoadConfig(string input) | 
|     { | 
|         try { | 
|         string[] 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 LVLimitMin);  | 
|   | 
|             PassAwardList = JsonMapper.ToObject<int[][]>(tables[4].Replace("(", "[").Replace(")", "]"));  | 
|   | 
|             SweepAwardList = JsonMapper.ToObject<int[][]>(tables[5].Replace("(", "[").Replace(")", "]"));  | 
|   | 
|             if (tables[6].Contains("[")) | 
|             { | 
|                 LineupIDList = JsonMapper.ToObject<int[]>(tables[6]); | 
|             } | 
|             else | 
|             { | 
|                 string[] LineupIDListStringArray = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); | 
|                 LineupIDList = new int[LineupIDListStringArray.Length]; | 
|                 for (int i=0;i<LineupIDListStringArray.Length;i++) | 
|                 { | 
|                      int.TryParse(LineupIDListStringArray[i],out LineupIDList[i]); | 
|                 } | 
|             } | 
|   | 
|             int.TryParse(tables[7],out NPCLV);  | 
|   | 
|             float.TryParse(tables[8],out Difficulty);  | 
|   | 
|             long.TryParse(tables[9],out FightPower);  | 
|         } | 
|         catch (Exception exception) | 
|         { | 
|             Debug.LogError(exception); | 
|         } | 
|     } | 
| } |