C# 클래스 OpenBveApi.Packages.Manipulation

Provides functions for manipulating OpenBVE packages
파일 보기 프로젝트 열기: leezer3/OpenBVE

공개 메소드들

메소드 설명
CreatePackage ( Package currentPackage, CompressionType compressionType, string packageFile, string packageImage, List packageFiles ) : void

Creates a new packaged archive

ExtractPackage ( Package currentPackage, string extractionDirectory, string databaseFolder, string &packageFiles ) : void

This extracts a package, and returns the list of extracted files

OnProblemReport ( object sender, ProblemReport problemReport ) : void

This is called whenever the progress changes

OnProgressChanged ( object sender, ProgressReport progressReport ) : void

This is called whenever the progress changes

ReadPackage ( string packageFile ) : Package

Reads the information of the selected package

UninstallPackage ( Package currentPackage, string databaseFolder, string &PackageFiles ) : bool

Uninstalls a package

메소드 상세

CreatePackage() 공개 정적인 메소드

Creates a new packaged archive
public static CreatePackage ( Package currentPackage, CompressionType compressionType, string packageFile, string packageImage, List packageFiles ) : void
currentPackage Package The package data we wish to compress into an archive
compressionType CompressionType The compression type to use for this archive
packageFile string The filename to save the package as
packageImage string The path to the image for this package, if applicable
packageFiles List The list of files to save within the package
리턴 void

ExtractPackage() 공개 정적인 메소드

This extracts a package, and returns the list of extracted files
public static ExtractPackage ( Package currentPackage, string extractionDirectory, string databaseFolder, string &packageFiles ) : void
currentPackage Package The package to extract
extractionDirectory string The directory to extract to
databaseFolder string The root package database folder
packageFiles string Returns via 'ref' a string containing a list of files in the package (Used to update the dialog)
리턴 void

OnProblemReport() 공개 정적인 메소드

This is called whenever the progress changes
public static OnProblemReport ( object sender, ProblemReport problemReport ) : void
sender object
problemReport ProblemReport
리턴 void

OnProgressChanged() 공개 정적인 메소드

This is called whenever the progress changes
public static OnProgressChanged ( object sender, ProgressReport progressReport ) : void
sender object
progressReport ProgressReport
리턴 void

ReadPackage() 공개 정적인 메소드

Reads the information of the selected package
public static ReadPackage ( string packageFile ) : Package
packageFile string
리턴 Package

UninstallPackage() 공개 정적인 메소드

Uninstalls a package
public static UninstallPackage ( Package currentPackage, string databaseFolder, string &PackageFiles ) : bool
currentPackage Package The package to uninstall
databaseFolder string The package database folder
PackageFiles string Returns via 'ref' a list of files uninstalled
리턴 bool