GameState Enum
The GameState enum defines the various states that the game can transition through during its lifecycle.
Enum Values
| Name | Value | Description |
|---|---|---|
INIT | 0 | Initial state before the game setup begins. |
WAIT_FOR_PLAYERS_TO_LOAD | 1 | Waiting for players to load into the game. |
HERO_SELECTION | 2 | The hero selection phase. |
STRATEGY_TIME | 3 | The strategy time phase before the game starts. |
PRE_GAME | 4 | The pre-game phase before the main game begins. |
GAME_IN_PROGRESS | 5 | The main gameplay phase. |
POST_GAME | 6 | The post-game phase after the match concludes. |
DISCONNECT | 7 | A state indicating player disconnection. |
TEAM_SHOWCASE | 8 | Team showcase phase (e.g., during tournaments or events). |
CUSTOM_GAME_SETUP | 9 | Setup phase for a custom game. |
WAIT_FOR_MAP_TO_LOAD | 10 | Waiting for the game map to load. |
SCENARIO_SETUP | 11 | Scenario setup phase for specific game scenarios. |
PLAYER_DRAFT | 12 | Player draft phase for team compositions. |
LAST | 13 | Indicates the last valid state in the enumeration (used as a boundary). |