public bool TryGetItemTemplate(string name, out item item) { // This is kinda gross var neutralKey = new Tuple<Sex, String>(Sex.Neutral, name); var femaleKey = new Tuple<Sex, String>(Sex.Female, name); var maleKey = new Tuple<Sex, String>(Sex.Male, name); return ItemCatalog.TryGetValue(neutralKey, out item) || ItemCatalog.TryGetValue(femaleKey, out item) || ItemCatalog.TryGetValue(maleKey, out item); }
public bool TryGetItemTemplate(string name, Sex itemSex, out item item) { var itemKey = new Tuple<Sex, String>(itemSex, name); return ItemCatalog.TryGetValue(itemKey, out item); }