Plugin system to manage plugins.
Members
instanceList :Array.<object>
List of instanceplugins.
Type:
- Array.<object>
list :Array.<ViewarPlugin>
List of plugins.
Type:
- Array.<ViewarPlugin>
(async) register
Registers a new plugin.
registerUiCallback
Registers callback to listen on events fired by "notifyUi" inside an instance plugin.
(async) unregister
Unregisters an existing plugin.
unregisterUiCallback
Unregisters a callback previously registered with "registerUiCallback".
Methods
get(name) → {ViewarPlugin}
Get a specific plugin.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Name of the plugin. |
Returns:
The plugin instance.
- Type
- ViewarPlugin