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.GetProfileStorecreate()
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.CancelDownloadGetAccountMngr
ts
GetAccountMngr: Mock<() => account_manager>;Get the multiplayer account manager.
Returns
Account manager.
Implementation of
ts
CMainMenu.GetAccountMngrGetCDKey
ts
GetCDKey: Mock<() => string>;Get the CD key stored by the game.
Returns
CD key string.
Implementation of
ts
CMainMenu.GetCDKeyGetDemoInfo
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.GetDemoInfoGetGSVer
ts
GetGSVer: Mock<() => string>;Get GameSpy protocol version string.
Returns
GameSpy version.
Implementation of
ts
CMainMenu.GetGSVerGetLoginMngr
ts
GetLoginMngr: Mock<() => MockLoginManager>;Get the multiplayer login manager.
Returns
Login manager.
Implementation of
ts
CMainMenu.GetLoginMngrGetPatchProgress
ts
GetPatchProgress: Mock<() => Patch_Dawnload_Progress>;Get patch download progress.
Returns
Patch progress object.
Implementation of
ts
CMainMenu.GetPatchProgressGetPlayerName
ts
GetPlayerName: Mock<() => string>;Get the current player name.
Returns
Player name.
Implementation of
ts
CMainMenu.GetPlayerNameloginManager
ts
loginManager: MockLoginManager;ValidateCDKey
ts
ValidateCDKey: Mock<() => boolean>;Validate the stored CD key.
Returns
Whether the CD key is valid.
Implementation of
ts
CMainMenu.ValidateCDKeyinstance
ts
protected static instance: MockCMainMenu | null = null;