| //--------------------------------------------------------  | 
| //    [Author]:           YYL  | 
| //    [  Date ]:           2025年9月4日  | 
| //--------------------------------------------------------  | 
|   | 
| using System.Collections.Generic;  | 
| using System;  | 
| using UnityEngine;  | 
| using LitJson;  | 
|   | 
| public partial class XBGetItemConfig : ConfigBase<int, XBGetItemConfig>  | 
| {  | 
|     static XBGetItemConfig()  | 
|     {  | 
|         // 访问过静态构造函数  | 
|         visit = true;   | 
|     }  | 
|   | 
|     public int ID;  | 
|     public int TreasureType;  | 
|     public int MinLV;  | 
|     public Dictionary<int, int[]> GridItemInfo;  | 
|     public Dictionary<int, int> GridLibInfo;  | 
|     public int[][] JobItemList;  | 
|     public int[][] GridItemRateList1;  | 
|     public Dictionary<int, int[][]> LuckyItemRateInfo;  | 
|   | 
|     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 TreasureType);   | 
|   | 
|             int.TryParse(tables[2],out MinLV);   | 
|   | 
|             GridItemInfo = ConfigParse.ParseIntArrayDict(tables[3]);   | 
|   | 
|             GridLibInfo = ConfigParse.ParseIntDict(tables[4]);   | 
|   | 
|             JobItemList = JsonMapper.ToObject<int[][]>(tables[5].Replace("(", "[").Replace(")", "]"));   | 
|   | 
|             GridItemRateList1 = JsonMapper.ToObject<int[][]>(tables[6].Replace("(", "[").Replace(")", "]"));   | 
|   | 
|             LuckyItemRateInfo = ConfigParse.ParseIntArray2Dict(tables[7].Replace("(", "[").Replace(")", "]"));   | 
|         }  | 
|         catch (Exception exception)  | 
|         {  | 
|             Debug.LogError(exception);  | 
|         }  | 
|     }  | 
| }  |