GameManager¶
Use these methods to access game configuration.
Static members¶
Member |
Description |
---|---|
|
Gets the build number. |
|
|
|
The current game difficulty selected via the options menu. |
|
Returns true if the game build is tagged as beta. |
|
Returns true if the game is considered running on a legitimate copy of the game. |
|
|
|
Returns true while the game is running in mod testing mode. |
|
The display name of the current or last map |
|
The name of the current active scene |
Static methods¶
Method |
Description |
---|---|
Returns the team name with a rich text color tag. |
|
Returns the team name. |
Details¶
-
class
GameManager
¶ -
static const int
buildNumber
¶ Gets the build number. Running this on EA Build 20 returns 20.
-
static const string
currentGameModeName
¶
-
static const GameDifficulty
gameDifficulty
¶ The current game difficulty selected via the options menu.
-
static const bool
isBetaBuild
¶ Returns true if the game build is tagged as beta.
-
static const bool
isLegitimate
¶ Returns true if the game is considered running on a legitimate copy of the game. Please note that this value can never be considered 100% accurate and may yield false positives and false negatives.
-
static const bool
isPaused
¶
-
static const bool
isTestingContentMod
¶ Returns true while the game is running in mod testing mode. This is useful for reducing startup durations, etc when developing a mod.
-
static const string
mapDisplayName
¶ The display name of the current or last map
-
static const string
sceneName
¶ The name of the current active scene
-
static const int