Table of Contents

Struct LiquidState

Namespace
TileWorld.Engine.World.Cells
Assembly
TileWorld.Engine.dll

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

kind LiquidKind

The liquid kind.

amount byte

The liquid amount in the range 0..255.

Properties

Amount

Gets the liquid amount in the range 0..255.

public byte Amount { get; }

Property Value

byte

HasLiquid

Gets a value indicating whether this state contains liquid.

public bool HasLiquid { get; }

Property Value

bool

Kind

Gets the liquid kind.

public LiquidKind Kind { get; }

Property Value

LiquidKind

None

Gets an empty liquid state.

public static LiquidState None { get; }

Property Value

LiquidState