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
Gold
Current spendable gold.
public int Gold { get; }
Property Value
Lives
Remaining lives, clamped to zero.
public int Lives { get; }
Property Value
NextWaveRemaining
Seconds until the next automatic wave start; zero after the last wave.
public float NextWaveRemaining { get; }
Property Value
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
Phase
Current game phase.
public GamePhase Phase { get; }
Property Value
Tick
Number of completed fixed steps.
public long Tick { get; }
Property Value
VictoryStars
Final one-to-three star victory result; zero before victory and on defeat.
public int VictoryStars { get; }
Property Value
WaveNumber
Number of waves started; zero means none.
public int WaveNumber { get; }