C# Class BedrockLauncher.ViewModels.GameManager

Inheritance: NotifyPropertyChangedBase
Show file Open project: BedrockLauncher/BedrockLauncher

Public Properties

Property Type Description
MINECRAFT_EXE_NAME string
MINECRAFT_PACKAGE_FAMILY string
cancelSource CancellationTokenSource

Public Methods

Method Description
Backup ( ) : void
Cancel ( ) : void
GameManager ( ) : BedrockLauncher.Classes
GetGameProcess ( AppActivationResult v ) : void
KillGame ( ) : void
OpenFolder ( object i ) : void
Play ( MCProfile p, BLInstallation i, bool KeepLauncherOpen, bool Save = true ) : void
Remove ( BLVersion v ) : void
Repair ( BLVersion v ) : void

Private Methods

Method Description
BetaAuthenticate ( ) : Task
DeploymentProgressWrapper ( MCVersion version, IAsyncOperationWithProgress t ) : Task
Download ( BLVersion v, bool RunAfterwards ) : Task
DownloadVersion ( BLVersion v, VersionDownloader downloader, string dlPath, CancellationTokenSource cancelSource ) : Task
ExtractPackage ( BLVersion v, string dlPath, CancellationTokenSource cancelSource ) : Task
GameProcessExited ( object sender, EventArgs e ) : void
GetPackageNameFromMainifest ( string filePath ) : string
GetPackagePath ( Package pkg ) : string
LaunchGame ( MCVersion v, bool KeepLauncherOpen ) : Task
ReRegisterPackage ( MCVersion v, string gameDir ) : Task
SetInstallationDataPath ( MCProfile p, BLInstallation i ) : Task
UnregisterPackage ( MCVersion v, string gameDir, bool reRegisterMode ) : Task

Method Details

Backup() public method

public Backup ( ) : void
return void

Cancel() public method

public Cancel ( ) : void
return void

GameManager() public method

public GameManager ( ) : BedrockLauncher.Classes
return BedrockLauncher.Classes

GetGameProcess() public method

public GetGameProcess ( AppActivationResult v ) : void
v AppActivationResult
return void

KillGame() public method

public KillGame ( ) : void
return void

OpenFolder() public method

public OpenFolder ( object i ) : void
i object
return void

Play() public method

public Play ( MCProfile p, BLInstallation i, bool KeepLauncherOpen, bool Save = true ) : void
p MCProfile
i BLInstallation
KeepLauncherOpen bool
Save bool
return void

Remove() public method

public Remove ( BLVersion v ) : void
v BLVersion
return void

Repair() public method

public Repair ( BLVersion v ) : void
v BLVersion
return void

Property Details

MINECRAFT_EXE_NAME public static property

public static string MINECRAFT_EXE_NAME
return string

MINECRAFT_PACKAGE_FAMILY public static property

public static string MINECRAFT_PACKAGE_FAMILY
return string

cancelSource public property

public CancellationTokenSource cancelSource
return CancellationTokenSource