C# Class Nexus.Client.GameModeSelector

Chooses the current game mode.
This selector checks the following to select the current game mode: -command line -remembered game mode in settings -ask the user
Mostrar archivo Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
GameModeSelector ( GameModeRegistry p_gmrSupportedGameModes, GameModeRegistry p_gmrInstalledGameModes, IEnvironmentInfo p_eifEnvironmentInfo ) : System

A simple constructor that initializes the object with the given dependencies.

SelectGameMode ( string p_strRequestedGameMode, bool p_booChangeDefaultGameMode ) : IGameModeFactory

Selectes the current game mode.

Method Details

GameModeSelector() public method

A simple constructor that initializes the object with the given dependencies.
public GameModeSelector ( GameModeRegistry p_gmrSupportedGameModes, GameModeRegistry p_gmrInstalledGameModes, IEnvironmentInfo p_eifEnvironmentInfo ) : System
p_gmrSupportedGameModes Nexus.Client.Games.GameModeRegistry The games modes supported by the mod manager.
p_gmrInstalledGameModes Nexus.Client.Games.GameModeRegistry The game modes factories for installed games.
p_eifEnvironmentInfo IEnvironmentInfo The application's envrionment info.
return System

SelectGameMode() public method

Selectes the current game mode.
public SelectGameMode ( string p_strRequestedGameMode, bool p_booChangeDefaultGameMode ) : IGameModeFactory
p_strRequestedGameMode string The id of the game mode we want to select.
p_booChangeDefaultGameMode bool Whether the users ahs requested a change to the default game mode.
return IGameModeFactory