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;
|
}
|
}
|
|