yyl
2025-11-21 48d3c956509d2321fabf1a9468f045d3f1f61c5e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System.Collections.Generic;
public partial class ModelConfig : ConfigBase<int, ModelConfig>
{
    //<TabType,List<TitleID>>
    static Dictionary<int, List<int>> tabTypeDict = new Dictionary<int, List<int>>();
 
    protected override void OnConfigParseCompleted()
    {
        if (!tabTypeDict.ContainsKey(TabType))
        {
            tabTypeDict[TabType] = new List<int>();
        }
        tabTypeDict[TabType].Add(ID);
    }
 
    public static List<int> GetTabTypeTitles(int tabType)
    {
        if (!tabTypeDict.ContainsKey(tabType))
        {
            return new List<int>();
        }
        return tabTypeDict[tabType];
    }
 
}