少年修仙传客户端代码仓库
client_Wu Xijin
2019-06-27 be5d159c18c1aea1fd9f310bcedb7afa05923e10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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;
    }
}