using System.Collections.Generic; public partial class ModelConfig : ConfigBase { //> static Dictionary> tabTypeDict = new Dictionary>(); protected override void OnConfigParseCompleted() { if (!tabTypeDict.ContainsKey(TabType)) { tabTypeDict[TabType] = new List(); } tabTypeDict[TabType].Add(ID); } public static List GetTabTypeTitles(int tabType) { if (!tabTypeDict.ContainsKey(tabType)) { return new List(); } List allKeys = tabTypeDict[tabType]; List validKeys = new List(); for (int i = 0; i < allKeys.Count; i++) { int id = allKeys[i]; var cfg = Get(id); // 过滤未达到开服天数的武将和皮肤头像 if (PhantasmPavilionManager.Instance.IsFaceOrModelVisible(cfg.UnlockWay, cfg.UnlockValue)) { validKeys.Add(id); } } return validKeys; } }