少年修仙传客户端代码仓库
client_Wu Xijin
2018-08-14 99a3f198578f79b48bca1821554fb4b76270cd27
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
36
37
38
39
40
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TableConfig
{
 
    public partial class RoleEquipStarsConfig : ConfigBase, IConfigPostProcess
    {
        private static Dictionary<int, RoleEquipStarsConfig> tagEquipStarsModelDict = new Dictionary<int, RoleEquipStarsConfig>();
 
        public void OnConfigParseCompleted()
        {
            tagEquipStarsModelDict.Add(countNeed, this);
        }
 
        #region 得到全身装备星级的数据
 
        public static List<RoleEquipStarsConfig> GetEquipStarslist()
        {
            return tagEquipStarsModelDict.Values.ToList();
        }
 
        public static List<int> GetEquipStarsCntlist()
        {
            List<int> starslist = tagEquipStarsModelDict.Keys.ToList();
            starslist.Sort();
            return starslist;
        }
 
        public static RoleEquipStarsConfig GetEquipStarsModel(int stars)
        {
            RoleEquipStarsConfig item = null;
            tagEquipStarsModelDict.TryGetValue(stars, out item);
            return item;
        }
        #endregion
    }
 
}