hch
1 天以前 eb27e5fd31f73b998a4bbd85511a31e40b8c61b7
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 TitleConfig : ConfigBase<int, TitleConfig>
{
    //<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(TitleID);
    }
 
    public static List<int> GetTabTypeTitles(int tabType)
    {
        if (!tabTypeDict.ContainsKey(tabType))
        {
            return new List<int>();
        }
        return tabTypeDict[tabType];
    }
 
}