| //--------------------------------------------------------  | 
| //    [Author]:           YYL  | 
| //    [  Date ]:           2025年9月22日  | 
| //--------------------------------------------------------  | 
|   | 
| using System.Collections.Generic;  | 
| using System;  | 
| using UnityEngine;  | 
| using LitJson;  | 
|   | 
| public partial class GoldRushItemConfig : ConfigBase<int, GoldRushItemConfig>  | 
| {  | 
|     static GoldRushItemConfig()  | 
|     {  | 
|         // 访问过静态构造函数  | 
|         visit = true;   | 
|     }  | 
|   | 
|     public int GoldID;  | 
|     public int ItemID;  | 
|     public int ItemLV;  | 
|     public int ItemCount;  | 
|     public int WorkerMax;  | 
|     public int NeedSeconds;  | 
|   | 
|     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 GoldID);   | 
|   | 
|             int.TryParse(tables[1],out ItemID);   | 
|   | 
|             int.TryParse(tables[2],out ItemLV);   | 
|   | 
|             int.TryParse(tables[3],out ItemCount);   | 
|   | 
|             int.TryParse(tables[4],out WorkerMax);   | 
|   | 
|             int.TryParse(tables[5],out NeedSeconds);   | 
|         }  | 
|         catch (Exception exception)  | 
|         {  | 
|             Debug.LogError(exception);  | 
|         }  | 
|     }  | 
| }  |