GameManager

Use these methods to access game configuration.

Static members

Member

Description

buildNumber

Gets the build number.

currentGameModeName

gameDifficulty

The current game difficulty selected via the options menu.

isBetaBuild

Returns true if the game build is tagged as beta.

isLegitimate

Returns true if the game is considered running on a legitimate copy of the game.

isPaused

isTestingContentMod

Returns true while the game is running in mod testing mode.

mapDisplayName

The display name of the current or last map

sceneName

The name of the current active scene

Static methods

Method

Description

GetRichTextColorTeamName(team)

Returns the team name with a rich text color tag.

GetTeamName(team)

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 string GetRichTextColorTeamName(Team team)

Returns the team name with a rich text color tag. Example: <color=blue>EAGLE</color>

static string GetTeamName(Team team)

Returns the team name.