少年修仙传客户端代码仓库
leonard Wu
2018-08-02 a38909a99dd4108c110611a3575122fe77915a99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace TableConfig
{
    public partial class ItemPlusConfig : ConfigBase, IConfigPostProcess
    {
        private static Dictionary<string, ItemPlusConfig> t_ItemP = new Dictionary<string, ItemPlusConfig>();
 
        public void OnConfigParseCompleted()
        {
            t_ItemP.Add(StringUtility.Contact(type, level).ToString(), this);
        }
 
        public static ItemPlusConfig GetTypeAndGrade(int _type, int _level)
        {
            ItemPlusConfig itemPlus = null;
            t_ItemP.TryGetValue(StringUtility.Contact(_type, _level).ToString(), out itemPlus);
            return itemPlus;
        }
    }
 
 
}