CookableCategoryDefinition
A class in Root.Township, Alta.Cooking.
A stew ingredient that matches any cookable item in a category, rather than one item.
- Listed in Crafting and making
- Inherits or implements
StewIngredientBase - Derived types
CookableCategoryDefinition.Create - Nested types
Create - Documented in Cooking
Constructors
| Member | What it is |
|---|---|
CookableCategoryDefinition() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
1 private and internal field
| Member | What it is |
|---|---|
private static Dictionary<CookableCategoryDefinition, List<CookableItem>> allCookableItems | Backing field for AllCookableItems. |
Properties
| Member | What 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
| Member | What 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: