| //-------------------------------------------------------- | 
| //    [Author]:           YYL | 
| //    [  Date ]:           2025年10月9日 | 
| //-------------------------------------------------------- | 
|   | 
| using System.Collections.Generic; | 
| using System; | 
| using UnityEngine; | 
| using LitJson; | 
|   | 
| public partial class DungeonOpenTimeConfig : ConfigBase<int, DungeonOpenTimeConfig> | 
| { | 
|     static DungeonOpenTimeConfig() | 
|     { | 
|         // 访问过静态构造函数 | 
|         visit = true;  | 
|     } | 
|   | 
|     public int DataMapID; | 
|     public string FBName; | 
|     public int DayTimes; | 
|     public int PayCntMax; | 
|     public int PayMoneyType; | 
|     public int[] PayMoneyValues; | 
|   | 
|     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 DataMapID);  | 
|   | 
|             FBName = tables[1]; | 
|   | 
|             int.TryParse(tables[2],out DayTimes);  | 
|   | 
|             int.TryParse(tables[3],out PayCntMax);  | 
|   | 
|             int.TryParse(tables[4],out PayMoneyType);  | 
|   | 
|             if (tables[5].Contains("[")) | 
|             { | 
|                 PayMoneyValues = JsonMapper.ToObject<int[]>(tables[5]); | 
|             } | 
|             else | 
|             { | 
|                 string[] PayMoneyValuesStringArray = tables[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); | 
|                 PayMoneyValues = new int[PayMoneyValuesStringArray.Length]; | 
|                 for (int i=0;i<PayMoneyValuesStringArray.Length;i++) | 
|                 { | 
|                      int.TryParse(PayMoneyValuesStringArray[i],out PayMoneyValues[i]); | 
|                 } | 
|             } | 
|         } | 
|         catch (Exception exception) | 
|         { | 
|             Debug.LogError(exception); | 
|         } | 
|     } | 
| } |