Skip to main content

LiquidContainerSaveData

A class in Root.Township, Alta.Liquid.

Save data for a LiquidContainer (save version 1): its fill level, whether it can be filled or emptied, and either a preset liquid or custom liquid data.

Constructors​

MemberWhat it is
LiquidContainerSaveData()Creates a LiquidContainerSaveData with default values.

Fields​

MemberWhat it is
bool canAddToWhether liquid can be poured into the container.
bool canRemoveFromWhether liquid can be poured out of the container.
int contentLevelHow full the container is, as an integer level.
LiquidContainerSaveData.CustomData customDataThe colour, effects, visuals and chunks of a custom liquid. Used when isCustom is true.
bool hasContentWhether the container holds any liquid.
bool isCustomTrue when the content is a custom mix (stored in customData) rather than a preset.
LiquidDefinition presetThe liquid definition of the content when it is not custom.