hch
2025-11-14 a87af2e9893ed26dd7ff41726b36730eebd00a83
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
 
using System.Collections.Generic;
using System.Linq;
 
public partial class FirstChargeConfig : ConfigBase<int, FirstChargeConfig>
{
    private static Dictionary<int, int> ctgIdTofirstIdDict = new Dictionary<int, int>();
    protected override void OnConfigParseCompleted()
    {
        ctgIdTofirstIdDict[CTGID] = FirstID;
    }
 
    public static List<int> GetCtgIDList()
    {
        return ctgIdTofirstIdDict.Keys.ToList();
    }
 
    public static bool TryGetFirstIdByCtgID(int ctgID, out int firstID)
    {
        return ctgIdTofirstIdDict.TryGetValue(ctgID, out firstID);
    }
}