API reference
API reference
Select your platform
No SDKs available
No versions available

PluggableBase Class

This is a plugin injection system for the given type T which can search for the given type and store it statically for the entire class.

Overview

Object Data

List< T >
A collection of the instantiated plugins which were found.

Object Data

static void
Checks whether we've already cached the loaded plugins and reloads them if we've had code changes (eg if the static editor code has been updated).

Object Data

void
Looks for plugins and loads them.

Public Member Functions

TPluginType
TPluginType []

Details

Detailed Description

It will add a default instance of each type found to the list of Plugins for use by child classes.
Others
T
the type of plugin

Object Data

List<T> Meta.WitAi.PluggableBase< T >.LoadedPlugins
A collection of the instantiated plugins which were found.

Object Data

static void Meta.WitAi.PluggableBase< T >.CheckForPlugins ( )
Checks whether we've already cached the loaded plugins and reloads them if we've had code changes (eg if the static editor code has been updated).

Object Data

void Meta.WitAi.PluggableBase< T >.EnsurePluginsAreLoaded ( )
Looks for plugins and loads them.

Member Functions

TPluginType Meta.WitAi.PluggableBase< T >.Get< TPluginType > ( )
Returns
Retrieves the given type from the list of loaded plugins, if it exists. Returns the default option otherwise
Others
TPluginType
The type of plugin to retrieve
TPluginType [] Meta.WitAi.PluggableBase< T >.GetAll< TPluginType > ( )
Returns
Retrieves all plugins of the given type from the list of loaded plugins, if that type exists. Returns the default option otherwise
Others
TPluginType
The type of plugin to retrieve
Did you find this page helpful?
Thumbs up icon
Thumbs down icon