DIFF

class PluginManagerSource

Constructors 2

void PluginManager()

Members 2

private ref array<typename> m_PluginRegister

list of modules for creation

Referenced by PluginManager(), PluginsInit(), RegisterPlugin()
Show 1 more, UnregisterPlugin()
private ref map<typename, ref PluginBase> m_PluginsPtrs

plugin, plugin pointer

Methods 8

void MainOnUpdate(float delta_time)
PluginBase GetPluginByType(typename plugin_type)

Returns registred plugin by class type, better is to use global funtion GetPlugin(typename plugin_type)

module_tpye
typename class type of plugin

Returns: PluginBase

PluginRepairing plugin = GetPluginManager().GetPluginByType(PluginRepairing);
protected void RegisterPlugin(string plugin_class_name, bool reg_on_client, bool reg_on_server, bool reg_on_release = true)

Register new PluginBase to PluginManager for storing and handling plugin.

module_tpye
typename class type of plugin

Returns: void

class PluginRepairing extends PluginBase
{
...
}

RegisterPlugin(PluginRepairing);
protected void RegisterPluginDebug(string plugin_class_name, bool reg_on_client, bool reg_on_server)

Register new PluginBase to PluginManager for storing and handling plugin.

module_tpye
typename class type of plugin

Returns: void

class PluginRepairing extends PluginBase
{
...
}

RegisterPlugin(PluginRepairing);
References RegisterPlugin()
Referenced by Init()
protected void RegisterPluginDiag(string plugin_class_name, bool reg_on_client, bool reg_on_server)
References RegisterPlugin()
Referenced by Init()
protected bool UnregisterPlugin(string plugin_class_name)