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];
|
}
|
|
}
|