少年修仙传客户端代码仓库
hch
2025-06-12 204ef05a831c9484e2abc561d27ecbff7c797453
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// ------------------------------------------------------------------------------
//  <autogenerated>
//      This code was generated by a tool.
//      Mono Runtime Version: 2.0.50727.1433
// 
//      Changes to this file may cause incorrect behavior and will be lost if 
//      the code is regenerated.
//  </autogenerated>
// ------------------------------------------------------------------------------
 
using System.Collections.Generic;
 
 
public partial class DienstgradConfig : IConfigPostProcess
{
    private static Dictionary<int, List<DienstgradConfig>> m_titles = new Dictionary<int, List<DienstgradConfig>>();
 
    private static Dictionary<int, int[]> m_TitleAttrTypeDic = new Dictionary<int, int[]>();
    private static Dictionary<int, int[]> m_TitleAttrValueDic = new Dictionary<int, int[]>();
 
    public void OnConfigParseCompleted()
    {
        List<DienstgradConfig> list = null;
        m_titles.TryGetValue(Type, out list);
        if (list != null)
        {
            list.Add(this);
        }
        else
        {
            list = new List<DienstgradConfig>();
            list.Add(this);
            m_titles.Add(Type, list);
        }
 
        if (!m_TitleAttrTypeDic.ContainsKey(ID))
        {
            m_TitleAttrTypeDic.Add(ID, LightType);
        }
        if (!m_TitleAttrValueDic.ContainsKey(ID))
        {
            m_TitleAttrValueDic.Add(ID, LightAttribute);
        }
    }
 
    public static List<DienstgradConfig> GetTitlesByType(TitleType type)
    {
        List<DienstgradConfig> list = null;
        m_titles.TryGetValue((int)type, out list);
        return list;
    }
 
    public static int[] GetTitleAttrType(int _title)
    {
        int[] array = null;
        m_TitleAttrTypeDic.TryGetValue(_title, out array);
        return array;
    }
 
    public static int[] GetTitleAttrValue(int _title)
    {
        int[] array = null;
        m_TitleAttrValueDic.TryGetValue(_title, out array);
        return array;
    }
}