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.

isNightMode

Returns true if the current match is set at night.

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, variant)

Returns the team name with a rich text color tag.

GetTeamName(team)

Returns the team name.

SetTeamName(team, name)

Sets 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 isNightMode

Returns true if the current match is set at night.

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, ColorVariant variant)

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

static string GetTeamName(Team team)

Returns the team name.

static void SetTeamName(Team team, string name)

Sets the team name