Class GameState

Namespace
TDMaker.Core
Assembly
TDMaker.Core.dll

Read-only public economy, wave, and outcome state.

public sealed class GameState
Inheritance
GameState
Inherited Members

Constructors

GameState()

public GameState()

Properties

CanCallNextWave

Whether the next wave accepts manual calls.

public bool CanCallNextWave { get; }

Property Value

bool

Gold

Current spendable gold.

public int Gold { get; }

Property Value

int

Lives

Remaining lives, clamped to zero.

public int Lives { get; }

Property Value

int

NextWaveRemaining

Seconds until the next automatic wave start; zero after the last wave.

public float NextWaveRemaining { get; }

Property Value

float

NextWaveWaitDuration

Authored automatic wait duration for the pending wave's countdown denominator; zero while emitting or after the final wave.

public float NextWaveWaitDuration { get; }

Property Value

float

Phase

Current game phase.

public GamePhase Phase { get; }

Property Value

GamePhase

Tick

Number of completed fixed steps.

public long Tick { get; }

Property Value

long

VictoryStars

Final one-to-three star victory result; zero before victory and on defeat.

public int VictoryStars { get; }

Property Value

int

WaveNumber

Number of waves started; zero means none.

public int WaveNumber { get; }

Property Value

int