Main/Config/Configs/CTGSelectItemConfig.cs
@@ -1,41 +1,47 @@
//--------------------------------------------------------
//    [Author]:           YYL
//    [  Date ]:           Friday, June 27, 2025
//--------------------------------------------------------
using System.Collections.Generic;
using System.IO;
using System.Threading;
using System;
using UnityEngine;
using LitJson;
public partial class CTGSelectItemConfig : ConfigBase<int, CTGSelectItemConfig>
{
    public int SelectID;
   public int ItemID;
   public int ItemCount;
    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 SelectID);
         int.TryParse(tables[1],out ItemID);
         int.TryParse(tables[2],out ItemCount);
        }
        catch (Exception exception)
        {
            Debug.LogError(exception);
        }
    }
}
//--------------------------------------------------------
//    [Author]:           YYL
//    [  Date ]:           2025年8月4日
//--------------------------------------------------------
using System.Collections.Generic;
using System;
using UnityEngine;
using LitJson;
public partial class CTGSelectItemConfig : ConfigBase<int, CTGSelectItemConfig>
{
    static CTGSelectItemConfig()
    {
        if (isInit)
        {
            return;
        }
        LazyInit();
    }
    public int SelectID;
   public int ItemID;
   public int ItemCount;
    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 SelectID);
         int.TryParse(tables[1],out ItemID);
         int.TryParse(tables[2],out ItemCount);
        }
        catch (Exception exception)
        {
            Debug.LogError(exception);
        }
    }
}