C# Class Telemachus.PluginManager

Afficher le fichier Open project: KSP-Telemachus/Telemachus

Méthodes publiques

Méthode 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

Méthode Description
Deregister ( PluginHandler handler ) : void

Deregisters an API plugin handler instance via handler reference

ReadCommandList ( object pluginInstance ) : string[]

Method Details

GetAPIDelegate() public méthode

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
Résultat Func

PluginManager() public méthode

public PluginManager ( ) : System
Résultat System

Register() public méthode

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.
Résultat void