using System.Collections;
|
using System.Collections.Generic;
|
using System.Text;
|
|
public partial class ItemPlusConfig : IConfigPostProcess
|
{
|
private static Dictionary<int, ItemPlusConfig> ItemPlus = new Dictionary<int, ItemPlusConfig>();
|
public void OnConfigParseCompleted()
|
{
|
var key = type * 10000 + level;
|
ItemPlus[key] = this;
|
}
|
|
public static ItemPlusConfig GetTypeAndLevel(int type, int level)
|
{
|
var key = type * 10000 + level;
|
ItemPlusConfig itemPlus = null;
|
ItemPlus.TryGetValue(key, out itemPlus);
|
return itemPlus;
|
}
|
}
|
|
|