C# Class OpenBveApi.Objects.ObjectInterface

Represents the interface for loading objects. Plugins must implement this interface if they wish to expose objects.
Afficher le fichier Open project: leezer3/OpenBVE

Méthodes publiques

Méthode Description
CanLoadObject ( string path ) : bool

Checks whether the plugin can load the specified object.

Load ( Hosts host ) : void

Called when the plugin is loaded.

LoadObject ( string path, Object &obj ) : bool

Loads the specified object.

Unload ( ) : void

Called when the plugin is unloaded.

Method Details

CanLoadObject() public abstract méthode

Checks whether the plugin can load the specified object.
public abstract CanLoadObject ( string path ) : bool
path string The path to the file or folder that contains the object.
Résultat bool

Load() public méthode

Called when the plugin is loaded.
public Load ( Hosts host ) : void
host Hosts The host that loaded the plugin.
Résultat void

LoadObject() public abstract méthode

Loads the specified object.
public abstract LoadObject ( string path, Object &obj ) : bool
path string The path to the file or folder that contains the object.
obj Object Receives the object.
Résultat bool

Unload() public méthode

Called when the plugin is unloaded.
public Unload ( ) : void
Résultat void