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