C# Класс OpenBveApi.Objects.ObjectInterface

Represents the interface for loading objects. Plugins must implement this interface if they wish to expose objects.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

CanLoadObject() публичный абстрактный Метод

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.
Результат bool

Load() публичный Метод

Called when the plugin is loaded.
public Load ( Hosts host ) : void
host Hosts The host that loaded the plugin.
Результат void

LoadObject() публичный абстрактный Метод

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.
Результат bool

Unload() публичный Метод

Called when the plugin is unloaded.
public Unload ( ) : void
Результат void