GameManager
The GameManager namespace provides access to game manager state and addon-related key-value data.
Functions
GetDataManager()DataView | null
Retrieves the data manager.
Returned:
- DataView | null - The matching object, or
nullif it is not available.
GetGameManagerProxy()GameManagerProxy | null
Retrieves the game manager proxy.
Returned:
- GameManagerProxy | null - The matching object, or
nullif it is not available.
IsCustomGame()boolean
Checks whether it is custom game.
Returned:
- boolean - True if the condition is met, false otherwise.
IsEventGame()boolean
Checks whether it is event game.
Returned:
- boolean - True if the condition is met, false otherwise.
GetHeroesKeyValues()KeyValue | null
Retrieves the heroes key values.
Returned:
- KeyValue | null - The matching object, or
nullif it is not available.
GetUnitsKeyValues()KeyValue | null
Retrieves the units key values.
Returned:
- KeyValue | null - The matching object, or
nullif it is not available.
GetAddOnGame()string
Retrieves the add on game.
Returned:
- string - The requested add on game.
GetAddOnMap()string
Retrieves the add on map.
Returned:
- string - The requested add on map.