C# Class Telemachus.PluginManager

ファイルを表示 Open project: KSP-Telemachus/Telemachus

Public Methods

Method Description
GetAPIDelegate ( string APIname ) : Func

Scans the registered plugins for one that handles the named API string

PluginManager ( ) : System
Register ( object toRegister ) : void

Registers a plugin API with Telemachus

Private Methods

Method Description
Deregister ( PluginHandler handler ) : void

Deregisters an API plugin handler instance via handler reference

ReadCommandList ( object pluginInstance ) : string[]

Method Details

GetAPIDelegate() public method

Scans the registered plugins for one that handles the named API string
public GetAPIDelegate ( string APIname ) : Func
APIname string The API string to handle, excluding any parameters
return Func

PluginManager() public method

public PluginManager ( ) : System
return System

Register() public method

Registers a plugin API with Telemachus
public Register ( object toRegister ) : void
toRegister object An instance of a Plugin object, that conforms to the TelemachusPlugin interface. /// NOTE: Does NOT have to be a physical instance of the interface.
return void