public bool Contains(ItemTypeType itemType) { if (Type == ItemCategoryType.All) { return(true); } return(ItemTypes.Any(element => element.Type == itemType)); }
public ItemTypeAndRarityAlchemyIngredient(string name, string icon, ItemTypeType type, RarityType rarity, int count) { Name = name; Icon = icon; Count = count; this.type = type; this.rarity = rarity; }