少年修仙传客户端代码仓库
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
using System.Collections.Generic;
using System.Text;
 
public partial class RuneConfig : IConfigPostProcess
{
    private static Dictionary<int, List<RuneConfig>> m_RuneCfgs = new Dictionary<int, List<RuneConfig>>();
 
    public void OnConfigParseCompleted()
    {
        if (m_RuneCfgs.ContainsKey(TowerID))
        {
            m_RuneCfgs[TowerID].Add(this);
        }
        else
        {
            List<RuneConfig> list = new List<RuneConfig>();
            list.Add(this);
            m_RuneCfgs.Add(TowerID, list);
        }
 
    }
 
    public static Dictionary<int, List<RuneConfig>> GetAllTowerLockRune()
    {
        return m_RuneCfgs;
    }
}