少年修仙传客户端代码仓库
leonard Wu
2018-08-09 1875ff6edde61f76e0f0cbe247244b04318fcd80
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
using System.Collections.Generic;
using System.Text;
namespace TableConfig
{
    public partial class EquipWashSpecConfig : ConfigBase, IConfigPostProcess
    {
        private static Dictionary<int, List<EquipWashSpecConfig>> _washSpecDict = new Dictionary<int, List<EquipWashSpecConfig>>();
 
        public void OnConfigParseCompleted()
        {
            if (!_washSpecDict.ContainsKey(typeNeed))
            {
                List<EquipWashSpecConfig> washSpeclist = new List<EquipWashSpecConfig>();
                washSpeclist.Add(this);
                _washSpecDict.Add(typeNeed, washSpeclist);
            }
            else
            {
                _washSpecDict[typeNeed].Add(this);
            }
        }
 
        //得到相同洗练类型对应的所有套装属性
        public static List<EquipWashSpecConfig> GetWashSpecModel(int type)
        {
            if (_washSpecDict.ContainsKey(type))
                return _washSpecDict[type];
            else
                return null;
        }
 
    }
}