using System.Collections.Generic; using System.Text; namespace TableConfig { public partial class EquipWashSpecConfig : ConfigBase, IConfigPostProcess { private static Dictionary> _washSpecDict = new Dictionary>(); public void OnConfigParseCompleted() { if (!_washSpecDict.ContainsKey(typeNeed)) { List washSpeclist = new List(); washSpeclist.Add(this); _washSpecDict.Add(typeNeed, washSpeclist); } else { _washSpecDict[typeNeed].Add(this); } } //得到相同洗练类型对应的所有套装属性 public static List GetWashSpecModel(int type) { if (_washSpecDict.ContainsKey(type)) return _washSpecDict[type]; else return null; } } }