Skip to main content

PotDefinition

A class in Root.Township, Alta.Cooking.

Settings for a cooking pot type: how many ingredients make a stew and how many garnishes it takes. Read by StewManager.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private int minNumberOfIngredientsBacking field for MinNumberOfIngredients.
private int numberOfGarnishesBacking field for NumberOfGarnishes.

Properties​

MemberWhat it is
int MinNumberOfIngredients { get; }Ingredients needed before the pot checks for a recipe. Defaults to 4.
int NumberOfGarnishes { get; }Most garnishes the pot accepts; more are rejected. Defaults to 3.

Used in​

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