C# Class OpenBveApi.Packages.Information

Provides information functions for OpenBVE packages
Exibir arquivo Open project: leezer3/OpenBVE

Public Methods

Method Description
CheckVersion ( Package currentPackage, List packageList, Package &oldPackage ) : VersionInformation

Checks to see if this package is currently installed, and if so whether there is another version installed

UpgradeDowngradeDependancies ( Package currentPackage, List installedRoutes, List installedTrains ) : List

Checks to see if upgrading or downgrading this package will break any dependancies

Method Details

CheckVersion() public static method

Checks to see if this package is currently installed, and if so whether there is another version installed
public static CheckVersion ( Package currentPackage, List packageList, Package &oldPackage ) : VersionInformation
currentPackage Package The package to check
packageList List The list of currently installed packages
oldPackage Package Returns via 'ref' the current package installed
return VersionInformation

UpgradeDowngradeDependancies() public static method

Checks to see if upgrading or downgrading this package will break any dependancies
public static UpgradeDowngradeDependancies ( Package currentPackage, List installedRoutes, List installedTrains ) : List
currentPackage Package
installedRoutes List
installedTrains List
return List