using System.Collections; using System.Collections.Generic; using System.Text; public partial class ItemPlusConfig : IConfigPostProcess { private static Dictionary ItemPlus = new Dictionary(); 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; } }