Skip to content

GameState Enum ​

The GameState enum defines the various states that the game can transition through during its lifecycle.

Enum Values ​

NameValueDescription
INIT0Initial state before the game setup begins.
WAIT_FOR_PLAYERS_TO_LOAD1Waiting for players to load into the game.
HERO_SELECTION2The hero selection phase.
STRATEGY_TIME3The strategy time phase before the game starts.
PRE_GAME4The pre-game phase before the main game begins.
GAME_IN_PROGRESS5The main gameplay phase.
POST_GAME6The post-game phase after the match concludes.
DISCONNECT7A state indicating player disconnection.
TEAM_SHOWCASE8Team showcase phase (e.g., during tournaments or events).
CUSTOM_GAME_SETUP9Setup phase for a custom game.
WAIT_FOR_MAP_TO_LOAD10Waiting for the game map to load.
SCENARIO_SETUP11Scenario setup phase for specific game scenarios.
PLAYER_DRAFT12Player draft phase for team compositions.
LAST13Indicates the last valid state in the enumeration (used as a boundary).