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.
It will add a default instance of each type found to the list of Plugins for use by child classes.

Protected Fields

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

Protected Methods

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

Methods

Get< TPluginType > ()
Signature
TPluginType Meta.WitAi.PluggableBase< T >.Get< TPluginType >()
Returns
TPluginType  Retrieves the given type from the list of loaded plugins, if it exists. Returns the default option otherwise
GetAll< TPluginType > ()
Signature
TPluginType [] Meta.WitAi.PluggableBase< T >.GetAll< TPluginType >()
Returns
TPluginType []  Retrieves all plugins of the given type from the list of loaded plugins, if that type exists. Returns the default option otherwise

Protected Static Methods

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).
Signature
static void Meta.WitAi.PluggableBase< T >.CheckForPlugins()
Returns
void