Skip to content

Class: MockCMainMenu ​

Mock of the X-Ray engine CMainMenu manager.

Implements ​

  • CMainMenu

Constructors ​

Constructor ​

ts
new MockCMainMenu(): MockCMainMenu;

Returns ​

MockCMainMenu

Methods ​

GetProfileStore() ​

ts
GetProfileStore(): profile_store;

Get the multiplayer profile store.

Returns ​

profile_store

Profile store.

Implementation of ​

ts
CMainMenu.GetProfileStore

create() ​

ts
static create(): MockCMainMenu;

Returns ​

MockCMainMenu


getInstance() ​

ts
static getInstance(): MockCMainMenu;

Returns ​

MockCMainMenu


getMockInstance() ​

ts
static getMockInstance(): CMainMenu;

Returns ​

CMainMenu


mock() ​

ts
static mock(): CMainMenu;

Returns ​

CMainMenu

Properties ​

CancelDownload ​

ts
CancelDownload: Mock<UnknownFunction>;

Cancel the active multiplayer map download.

Implementation of ​

ts
CMainMenu.CancelDownload

GetAccountMngr ​

ts
GetAccountMngr: Mock<() => account_manager>;

Get the multiplayer account manager.

Returns ​

Account manager.

Implementation of ​

ts
CMainMenu.GetAccountMngr

GetCDKey ​

ts
GetCDKey: Mock<() => string>;

Get the CD key stored by the game.

Returns ​

CD key string.

Implementation of ​

ts
CMainMenu.GetCDKey

GetDemoInfo ​

ts
GetDemoInfo: Mock<() => null>;

Read metadata for a recorded demo file.

Param ​

fileName

Demo file name.

Returns ​

Demo info, or null when it cannot be read.

Implementation of ​

ts
CMainMenu.GetDemoInfo

GetGSVer ​

ts
GetGSVer: Mock<() => string>;

Get GameSpy protocol version string.

Returns ​

GameSpy version.

Implementation of ​

ts
CMainMenu.GetGSVer

GetLoginMngr ​

ts
GetLoginMngr: Mock<() => MockLoginManager>;

Get the multiplayer login manager.

Returns ​

Login manager.

Implementation of ​

ts
CMainMenu.GetLoginMngr

GetPatchProgress ​

ts
GetPatchProgress: Mock<() => Patch_Dawnload_Progress>;

Get patch download progress.

Returns ​

Patch progress object.

Implementation of ​

ts
CMainMenu.GetPatchProgress

GetPlayerName ​

ts
GetPlayerName: Mock<() => string>;

Get the current player name.

Returns ​

Player name.

Implementation of ​

ts
CMainMenu.GetPlayerName

loginManager ​

ts
loginManager: MockLoginManager;

ValidateCDKey ​

ts
ValidateCDKey: Mock<() => boolean>;

Validate the stored CD key.

Returns ​

Whether the CD key is valid.

Implementation of ​

ts
CMainMenu.ValidateCDKey

instance ​

ts
protected static instance: MockCMainMenu | null = null;