C# Class AdvancedLauncher.Management.Internal.UpdateManager

Mostra file Open project: GoldRenard/DMOAdvancedLauncher Class Usage Examples

Private Properties

Property Type Description
ExtractUpdate bool
GetFileLength double
GetFileSystem IFileSystemManager
GetVersion int
OnFileSystemOpenError void
OnStatusChanged void

Public Methods

Method Description
CheckUpdates ( GameModel model ) : VersionPair
DownloadUpdates ( GameModel model, VersionPair versionPair ) : bool
ImportPackages ( GameModel model ) : bool
Initialize ( ) : void

Private Methods

Method Description
ExtractUpdate ( int updateNumber, int updateMaxNumber, double progress, double maxProgress, string archiveFilenameIn, string outFolder, bool DeleteAfterExtract ) : bool
GetFileLength ( Uri url ) : double

Returns Length of remote file

GetFileSystem ( GameModel model ) : IFileSystemManager
GetVersion ( string text ) : int

Parse version file (like vGDMO.ini)

OnFileSystemOpenError ( ) : void
OnStatusChanged ( UpdateStatusEventArgs stage, int currentPatch, int maxPatch, double progress, double maxProgress, double summaryProgress, double summaryMaxProgress ) : void

Method Details

CheckUpdates() public method

public CheckUpdates ( GameModel model ) : VersionPair
model AdvancedLauncher.SDK.Model.Config.GameModel
return AdvancedLauncher.SDK.Model.VersionPair

DownloadUpdates() public method

public DownloadUpdates ( GameModel model, VersionPair versionPair ) : bool
model AdvancedLauncher.SDK.Model.Config.GameModel
versionPair AdvancedLauncher.SDK.Model.VersionPair
return bool

ImportPackages() public method

public ImportPackages ( GameModel model ) : bool
model AdvancedLauncher.SDK.Model.Config.GameModel
return bool

Initialize() public method

public Initialize ( ) : void
return void