C# Class AdvancedLauncher.Management.Internal.UpdateManager

Afficher le fichier Open project: GoldRenard/DMOAdvancedLauncher Class Usage Examples

Private Properties

Свойство Type Description
ExtractUpdate bool
GetFileLength double
GetFileSystem IFileSystemManager
GetVersion int
OnFileSystemOpenError void
OnStatusChanged void

Méthodes publiques

Méthode Description
CheckUpdates ( GameModel model ) : VersionPair
DownloadUpdates ( GameModel model, VersionPair versionPair ) : bool
ImportPackages ( GameModel model ) : bool
Initialize ( ) : void

Private Methods

Méthode 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 méthode

public CheckUpdates ( GameModel model ) : VersionPair
model AdvancedLauncher.SDK.Model.Config.GameModel
Résultat AdvancedLauncher.SDK.Model.VersionPair

DownloadUpdates() public méthode

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

ImportPackages() public méthode

public ImportPackages ( GameModel model ) : bool
model AdvancedLauncher.SDK.Model.Config.GameModel
Résultat bool

Initialize() public méthode

public Initialize ( ) : void
Résultat void