Skip to main content

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.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private CookableCategoryDefinition categoryBacking field for Category, the cookable category this item belongs to.
private LiquidVisualChunkDefinition chunkVisualBacking field for ChunkVisual, how the item looks as a chunk in liquid (for example in a stew).
private EffectDefinitionApplication[] effectsBacking field for Effects, the effects the item applies when eaten as part of a dish.

Properties​

MemberWhat 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: