using System.Collections.Generic; public partial class ItemCompoundConfig : ConfigBase { public static Dictionary itemCompoundDict = new Dictionary(); protected override void OnConfigParseCompleted() { itemCompoundDict.Add(makeID, this); } public static ItemCompoundConfig GetItemCompoundConfig(int makeID) { ItemCompoundConfig itemCompoundConfig = null; itemCompoundDict.TryGetValue(makeID, out itemCompoundConfig); return itemCompoundConfig; } public static bool IsCompoundItem(int itemID) { return itemCompoundDict.ContainsKey(itemID); } }