少年修仙传客户端代码仓库
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;
using System.Collections.Generic;
 
public partial class AlchemyConfig : IConfigPostProcess
{
    static Dictionary<int, List<int>> m_Alchemies = new Dictionary<int, List<int>>();
 
    public void OnConfigParseCompleted()
    {
        List<int> ids = null;
        if (!m_Alchemies.TryGetValue(AlchemType, out ids))
        {
            ids = new List<int>();
            m_Alchemies.Add(AlchemType, ids);
        }
        ids.Add(ID);
    }
 
    public static List<int> GetAlchemies(int type)
    {
        if (m_Alchemies.ContainsKey(type))
        {
            return m_Alchemies[type];
        }
        return null;
    }
}