Struct LiquidState
Represents the resolved liquid state of one world tile cell.
public readonly record struct LiquidState : IEquatable<LiquidState>
- Implements
- Inherited Members
Constructors
LiquidState(LiquidKind, byte)
Creates a liquid state value.
public LiquidState(LiquidKind kind, byte amount)
Parameters
kindLiquidKindThe liquid kind.
amountbyteThe liquid amount in the range
0..255.
Properties
Amount
Gets the liquid amount in the range 0..255.
public byte Amount { get; }
Property Value
HasLiquid
Gets a value indicating whether this state contains liquid.
public bool HasLiquid { get; }
Property Value
Kind
Gets the liquid kind.
public LiquidKind Kind { get; }
Property Value
None
Gets an empty liquid state.
public static LiquidState None { get; }