using System.Collections;
|
using System.Collections.Generic;
|
using System.Text;
|
|
public partial class ItemPlusMaxConfig : IConfigPostProcess
|
{
|
private static Dictionary<int, ItemPlusMaxConfig> t_ItemPM = new Dictionary<int, ItemPlusMaxConfig>();
|
|
private static Dictionary<int, int> m_ItemPlusMaxLvDict = new Dictionary<int, int>();
|
|
public void OnConfigParseCompleted()
|
{
|
var key = EquipType * 100 + equipStar;
|
t_ItemPM[key] = this;
|
}
|
|
public static ItemPlusMaxConfig GetEquipTypeAndEquipStar(int equipType, int equipStar)//获取强化类型,装备星数
|
{
|
var key = equipType * 100 + equipStar;
|
ItemPlusMaxConfig itemPMax = null;
|
t_ItemPM.TryGetValue(key, out itemPMax);
|
return itemPMax;
|
}
|
|
public static int GetItemPlusMaxLv(int _type)
|
{
|
if (m_ItemPlusMaxLvDict.ContainsKey(_type))
|
{
|
return m_ItemPlusMaxLvDict[_type];
|
}
|
return 0;
|
}
|
}
|
|
|