CookableItem
A class in Root.Township, Alta.Cooking.
Item component for a cooking ingredient: its cooking category, how it looks floating in a liquid and the effects it adds. Read through Cookable and the ingredient recipe pages.
- Listed in Crafting and making
- Inherits or implements
ItemComponent - Derived types
CookingGarnish
Constructors
| Member | What it is |
|---|---|
CookableItem() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private CookableCategoryDefinition category | Backing field for Category, the cookable category this item belongs to. |
private LiquidVisualChunkDefinition chunkVisual | Backing field for ChunkVisual, how the item looks as a chunk in liquid (for example in a stew). |
private EffectDefinitionApplication[] effects | Backing field for Effects, the effects the item applies when eaten as part of a dish. |
Properties
| Member | What it is |
|---|---|
CookableCategoryDefinition Category { get; } | Cooking category the item counts as. |
LiquidVisualChunkDefinition ChunkVisual { get; } | How pieces of it look floating in a liquid. |
EffectDefinitionApplication[] Effects { get; } | Effects it adds to the dish. |
Used in
Members of other types that take, return or hold a CookableItem:
Cookable.cookableItem, Cookable.CookableItem, CookableCategoryDefinition.allCookableItems, CookableCategoryDefinition.AllCookableItems, CookableCategoryDefinition.ContainsCookable, CookableCategoryDefinition.Cookables, CookableCollectionDefinition.ContainsCookable, CookableCollectionDefinition.cookableLookup, CookableCollectionDefinition.cookables, CookableCollectionDefinition.Cookables, IStewIngredient.ContainsCookable, StewContentArguments.Ingredients, StewIngredientBase.ContainsCookable, StewIngredientBase.Cookables, StewManager.AddedIngredient, StewManager.GetCookableItems, StewManager.ingredients, StewManager.Ingredients, StewRecipe.FindStewRecipeForIngredients, StewRecipe.givenIngredients, StewRecipe.IsValidIngredientList, LiquidData.cookablesUsed, LiquidData.CookablesUsed, LiquidData.LiquidData.