C# 클래스 OpenBveApi.Packages.Database

Stores the current package database
파일 보기 프로젝트 열기: leezer3/OpenBVE

공개 프로퍼티들

프로퍼티 타입 설명
currentDatabase PackageDatabase

공개 메소드들

메소드 설명
CheckUninstallDependancies ( List packagesToRemove ) : List

Checks whether uninstalling a package will break any dependancies

DependancyMet ( Package dependancy, List currentList ) : bool

Checks whether a dependancy is met by a member of a list of packages

LoadDatabase ( string Folder, string File ) : bool

Loads a package database XML file as the current database

SaveDatabase ( ) : bool

Call this method to save the package list to disk.

Returns false if an error was encountered whilst saving the database.

checkDependsReccomends ( List currentList ) : List

Checks a list of dependancies or reccomendations to see if they are installed

메소드 상세

CheckUninstallDependancies() 공개 정적인 메소드

Checks whether uninstalling a package will break any dependancies
public static CheckUninstallDependancies ( List packagesToRemove ) : List
packagesToRemove List The list of packages that will be removed
리턴 List

DependancyMet() 공개 정적인 메소드

Checks whether a dependancy is met by a member of a list of packages
public static DependancyMet ( Package dependancy, List currentList ) : bool
dependancy Package The dependancy
currentList List The package list to check
리턴 bool

LoadDatabase() 공개 정적인 메소드

Loads a package database XML file as the current database
public static LoadDatabase ( string Folder, string File ) : bool
Folder string The root database folder
File string The database file
리턴 bool

SaveDatabase() 공개 정적인 메소드

Call this method to save the package list to disk.
Returns false if an error was encountered whilst saving the database.
public static SaveDatabase ( ) : bool
리턴 bool

checkDependsReccomends() 공개 정적인 메소드

Checks a list of dependancies or reccomendations to see if they are installed
public static checkDependsReccomends ( List currentList ) : List
currentList List
리턴 List

프로퍼티 상세

currentDatabase 공개적으로 정적으로 프로퍼티

The current package database
public static PackageDatabase,OpenBveApi.Packages currentDatabase
리턴 PackageDatabase