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