using System.Collections.Generic; using System.Text; namespace TableConfig { public partial class EquipWashConfig : ConfigBase, IConfigPostProcess { private StringBuilder _washComposeID = new StringBuilder(); private static Dictionary equipWashDict = new Dictionary(); public void OnConfigParseCompleted() { _washComposeID.Length = 0; _washComposeID.Append(type); _washComposeID.Append(level); equipWashDict.Add(_washComposeID.ToString(), this); } /// /// 根据洗练等级以及类型取到对应洗练数据 /// /// /// /// public static EquipWashConfig GetCurrentWashEquipModel(int type, int level) { string strId = type + level.ToString(); EquipWashConfig equipWash = null; equipWashDict.TryGetValue(strId, out equipWash); return equipWash; } } }