using System;
|
using System.Collections.Generic;
|
|
public partial class AlchemyConfig : IConfigPostProcess
|
{
|
private static Dictionary<int, List<AlchemyConfig>> s_alchemyModelDict = new Dictionary<int, List<AlchemyConfig>>();//用于记录商城数据
|
private int type = 0;
|
|
public void OnConfigParseCompleted()
|
{
|
type = (int)Math.Floor((double)AlchemyID / 100);
|
if (!s_alchemyModelDict.ContainsKey(type))
|
{
|
List<AlchemyConfig> modellist = new List<AlchemyConfig>();
|
modellist.Add(this);
|
s_alchemyModelDict.Add(type, modellist);
|
}
|
else
|
{
|
s_alchemyModelDict[type].Add(this);
|
}
|
}
|
|
public static List<AlchemyConfig> GetTypeAlchemyModel(int type)
|
{
|
List<AlchemyConfig> modellist = null;
|
s_alchemyModelDict.TryGetValue(type, out modellist);
|
return modellist;
|
}
|
}
|
|