C# 클래스 Nexus.Client.Games.GameLauncherBase

A base implementation of a game launcher.
This implements some common functionality for game launchers.
상속: IGameLauncher
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5

공개 메소드들

메소드 설명
GameLauncherBase ( IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo ) : System

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

보호된 메소드들

메소드 설명
AddLaunchCommand ( Command p_cmdLaunch ) : void

Adds the given launch command.

ClearLaunchCommands ( ) : void

Clears all the launch commands.

Launch ( string p_strCommand, string p_strCommandArgs ) : void

Launches the game.

This is the root launch method that all the other launch methods call. This method actually spawns the new process to launch the game, using the given information.

OnGameLaunched ( Nexus.Client.Games.GameLaunchEventArgs e ) : void

Raises the GameLaunched event.

OnGameLaunched ( bool p_booGameLaunched, string p_strMessage ) : void

Raises the GameLaunched event.

OnGameLaunching ( ) : bool

Raises the GameLaunching event.

OnGameLaunching ( CancelEventArgs e ) : void

Raises the GameLaunching event.

SetupCommands ( ) : void

Initializes the game launch commands.

메소드 상세

AddLaunchCommand() 보호된 메소드

Adds the given launch command.
protected AddLaunchCommand ( Command p_cmdLaunch ) : void
p_cmdLaunch Nexus.Client.Commands.Command The launch command to add.
리턴 void

ClearLaunchCommands() 보호된 메소드

Clears all the launch commands.
protected ClearLaunchCommands ( ) : void
리턴 void

GameLauncherBase() 공개 메소드

A simple constructor that initializes the object with the given dependencies.
public GameLauncherBase ( IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo ) : System
p_gmdGameMode IGameMode >The game mode currently being managed.
p_eifEnvironmentInfo IEnvironmentInfo The application's envrionment info.
리턴 System

Launch() 보호된 메소드

Launches the game.
This is the root launch method that all the other launch methods call. This method actually spawns the new process to launch the game, using the given information.
protected Launch ( string p_strCommand, string p_strCommandArgs ) : void
p_strCommand string The command to execute to launch the game.
p_strCommandArgs string The command argumetns to pass to the launch command.
리턴 void

OnGameLaunched() 보호된 메소드

Raises the GameLaunched event.
protected OnGameLaunched ( Nexus.Client.Games.GameLaunchEventArgs e ) : void
e Nexus.Client.Games.GameLaunchEventArgs A describing the event arguments.
리턴 void

OnGameLaunched() 보호된 메소드

Raises the GameLaunched event.
protected OnGameLaunched ( bool p_booGameLaunched, string p_strMessage ) : void
p_booGameLaunched bool Whether or not the game launched successfully.
p_strMessage string A message to display to the user.
리턴 void

OnGameLaunching() 보호된 메소드

Raises the GameLaunching event.
protected OnGameLaunching ( ) : bool
리턴 bool

OnGameLaunching() 보호된 메소드

Raises the GameLaunching event.
protected OnGameLaunching ( CancelEventArgs e ) : void
e CancelEventArgs A describing the event arguments.
리턴 void

SetupCommands() 보호된 추상적인 메소드

Initializes the game launch commands.
protected abstract SetupCommands ( ) : void
리턴 void