Skip to main content

CookableCategoryDefinition

A class in Root.Township, Alta.Cooking.

A stew ingredient that matches any cookable item in a category, rather than one item.

Constructors​

MemberWhat it is
CookableCategoryDefinition()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

1 private and internal field
MemberWhat it is
private static Dictionary<CookableCategoryDefinition, List<CookableItem>> allCookableItemsBacking field for AllCookableItems.

Properties​

MemberWhat it is
static Dictionary<CookableCategoryDefinition, List<CookableItem>> AllCookableItems { get; }Every CookableItem grouped by its category, built from all items on first use.
override IEnumerable<CookableItem> Cookables { get; }The cookable items in this category.

Methods​

MemberWhat it is
override bool ContainsCookable(CookableItem cookable, out int score)True, with score 1, if the item's category is this one.

Used in​

Members of other types that take, return or hold a CookableCategoryDefinition: