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.
- Listed in Stats, effects, heat and liquid
- Inherits or implements
NewSaveData<LiquidContainer, LiquidContainerSaveData> - Derived types
LiquidContainer,LiquidContainerSaveData - Nested types
CustomData,Effect - Attributes
SaveStructure
Constructors
| Member | What it is |
|---|---|
LiquidContainerSaveData() | Creates a LiquidContainerSaveData with default values. |
Fields
| Member | What it is |
|---|---|
bool canAddTo | Whether liquid can be poured into the container. |
bool canRemoveFrom | Whether liquid can be poured out of the container. |
int contentLevel | How full the container is, as an integer level. |
LiquidContainerSaveData.CustomData customData | The colour, effects, visuals and chunks of a custom liquid. Used when isCustom is true. |
bool hasContent | Whether the container holds any liquid. |
bool isCustom | True when the content is a custom mix (stored in customData) rather than a preset. |
LiquidDefinition preset | The liquid definition of the content when it is not custom. |