C# Class ParkitectNexus.Data.Game.Base.BaseParkitect

Represents the Parkitect game.
Inheritance: IParkitect
显示文件 Open project: ParkitectNexus/ParkitectNexusClient

Public Methods

Method Description
DetectInstallationPath ( ) : bool

Detects the installation path.

Launch ( ) : void

Launches the game.

SetInstallationPathIfValid ( string path ) : bool

Sets the installation path if the specified path is a valid installation path.

Protected Methods

Method Description
BaseParkitect ( ISettingsRepository gameSettingsRepository, ILogger logger ) : System
IsValidInstallationPath ( string path ) : bool

Method Details

BaseParkitect() protected method

protected BaseParkitect ( ISettingsRepository gameSettingsRepository, ILogger logger ) : System
gameSettingsRepository ISettingsRepository
logger ILogger
return System

DetectInstallationPath() public abstract method

Detects the installation path.
public abstract DetectInstallationPath ( ) : bool
return bool

IsValidInstallationPath() protected abstract method

protected abstract IsValidInstallationPath ( string path ) : bool
path string
return bool

Launch() public abstract method

Launches the game.
public abstract Launch ( ) : void
return void

SetInstallationPathIfValid() public method

Sets the installation path if the specified path is a valid installation path.
public SetInstallationPathIfValid ( string path ) : bool
path string The path.
return bool