C# 클래스 OpenBveApi.Objects.ObjectInterface

Represents the interface for loading objects. Plugins must implement this interface if they wish to expose objects.
파일 보기 프로젝트 열기: leezer3/OpenBVE

공개 메소드들

메소드 설명
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