C# Class Nexus.Client.Games.StateOfDecay.StateOfDecayGameModeFactory

The base game mode factory that provides the command functionality for factories that build game modes for State of Decay based games.
Inheritance: IGameModeFactory
Exibir arquivo Open project: NexusMods/NexusModManager-4.5

Public Methods

Method Description
BuildGameMode ( FileUtil p_futFileUtility, ViewMessage &p_imsWarning ) : IGameMode

Builds the game mode.

GetExecutablePath ( string p_strPath ) : string

Gets the path to the game executable.

GetInstallationPath ( ) : string

Gets the path where mod files should be installed.

GetInstallationPath ( string p_strGameInstallPath ) : string

Gets the path where mod files should be installed.

This method uses the given path to the installed game to determine the installaiton path for mods.

PerformInitialSetup ( ShowViewDelegate p_dlgShowView, ShowMessageDelegate p_dlgShowMessage ) : bool

Performs the initial setup for the game mode being created.

PerformInitialization ( ShowViewDelegate p_dlgShowView, ShowMessageDelegate p_dlgShowMessage ) : bool

Performs the initialization for the game mode being created.

StateOfDecayGameModeFactory ( IEnvironmentInfo p_eifEnvironmentInfo ) : System

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

Protected Methods

Method Description
InstantiateGameMode ( FileUtil p_futFileUtility ) : StateOfDecayGameMode

Instantiates the game mode.

Method Details

BuildGameMode() public method

Builds the game mode.
public BuildGameMode ( FileUtil p_futFileUtility, ViewMessage &p_imsWarning ) : IGameMode
p_futFileUtility Nexus.Client.Util.FileUtil The file utility class to be used by the game mode.
p_imsWarning Nexus.Client.UI.ViewMessage The resultant warning resultant from the creation of the game mode. /// null if there are no warnings.
return IGameMode

GetExecutablePath() public method

Gets the path to the game executable.
public GetExecutablePath ( string p_strPath ) : string
p_strPath string
return string

GetInstallationPath() public method

Gets the path where mod files should be installed.
public GetInstallationPath ( ) : string
return string

GetInstallationPath() public method

Gets the path where mod files should be installed.
This method uses the given path to the installed game to determine the installaiton path for mods.
public GetInstallationPath ( string p_strGameInstallPath ) : string
p_strGameInstallPath string
return string

InstantiateGameMode() protected method

Instantiates the game mode.
protected InstantiateGameMode ( FileUtil p_futFileUtility ) : StateOfDecayGameMode
p_futFileUtility Nexus.Client.Util.FileUtil The file utility class to be used by the game mode.
return StateOfDecayGameMode

PerformInitialSetup() public method

Performs the initial setup for the game mode being created.
public PerformInitialSetup ( ShowViewDelegate p_dlgShowView, ShowMessageDelegate p_dlgShowMessage ) : bool
p_dlgShowView ShowViewDelegate The delegate to use to display a view.
p_dlgShowMessage ShowMessageDelegate The delegate to use to display a message.
return bool

PerformInitialization() public method

Performs the initialization for the game mode being created.
public PerformInitialization ( ShowViewDelegate p_dlgShowView, ShowMessageDelegate p_dlgShowMessage ) : bool
p_dlgShowView ShowViewDelegate The delegate to use to display a view.
p_dlgShowMessage ShowMessageDelegate The delegate to use to display a message.
return bool

StateOfDecayGameModeFactory() public method

A simple constructor that initializes the object with the given values.
public StateOfDecayGameModeFactory ( IEnvironmentInfo p_eifEnvironmentInfo ) : System
p_eifEnvironmentInfo IEnvironmentInfo The application's environment info.
return System