Skip to main content

LiquidDefinition

A class in Root.Township, Alta.Liquid.

A hashed asset for a liquid used in cooking, under Cooking/Liquids.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private LiquidContent contentCached LiquidContent made by GetAsLiquidContent, shared by every caller.
private LiquidData dataBacking field for Data: the liquid's colour, visuals and effects.

Properties​

MemberWhat it is
LiquidData Data { get; }The liquid's data.

Methods​

MemberWhat it is
LiquidContent GetAsLiquidContent()This liquid as liquid content, made once and then reused. Don't change the returned object.

Used in​

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