Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
PluginManager Class Reference

Protected Member Functions

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.
void RegisterPluginDebug (string plugin_class_name, bool reg_on_client, bool reg_on_server)
 Register new PluginBase to PluginManager for storing and handling plugin.
void RegisterPluginDiag (string plugin_class_name, bool reg_on_client, bool reg_on_server)
bool UnregisterPlugin (string plugin_class_name)

Private Member Functions

void PluginManager ()
void ~PluginManager ()
PluginBase GetPluginByType (typename plugin_type)
 Returns registred plugin by class type, better is to use global funtion GetPlugin(typename plugin_type).
void Init ()
void MainOnUpdate (float delta_time)
void PluginsInit ()

Private Attributes

ref array< typenamem_PluginRegister
ref map< typename, ref PluginBasem_PluginsPtrs

Detailed Description

Definition at line 1 of file pluginmanager.c.

Constructor & Destructor Documentation

◆ PluginManager()

void PluginManager ( )
inlineprivate

Definition at line 9 of file pluginmanager.c.

References m_PluginRegister, and m_PluginsPtrs.

◆ ~PluginManager()

void ~PluginManager ( )
inlineprivate

Member Function Documentation

◆ GetPluginByType()

PluginBase GetPluginByType ( typename plugin_type )
inlineprivate

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

Parameters
module_tpyetypename class type of plugin
Returns
PluginBase
PluginRepairing plugin = GetPluginManager().GetPluginByType(PluginRepairing);
PluginBase GetPluginByType(typename plugin_type)
Returns registred plugin by class type, better is to use global funtion GetPlugin(typename plugin_typ...
PluginManager GetPluginManager()
Returns registred plugin by class type, better is to use global funtion GetPlugin(typename plugin_typ...

Definition at line 166 of file pluginmanager.c.

References m_PluginsPtrs.

Referenced by GetPlugin(), GetPluginSafe(), and PluginsInit().

◆ Init()

void Init ( )
inlineprivate

◆ MainOnUpdate()

void MainOnUpdate ( float delta_time)
inlineprivate

Definition at line 142 of file pluginmanager.c.

References m_PluginsPtrs, and PluginBase::OnUpdate().

Referenced by ~PluginManager(), and Init().

◆ PluginsInit()

void PluginsInit ( )
inlineprivate

Definition at line 109 of file pluginmanager.c.

References GetPluginByType(), m_PluginRegister, and m_PluginsPtrs.

◆ RegisterPlugin()

void RegisterPlugin ( string plugin_class_name,
bool reg_on_client,
bool reg_on_server,
bool reg_on_release = true )
inlineprotected

Register new PluginBase to PluginManager for storing and handling plugin.

Parameters
module_tpyetypename class type of plugin
Returns
void
class PluginRepairing extends PluginBase
{
...
}
RegisterPlugin(PluginRepairing);
Class PluginMessageManager provides some basic Message Distribution mechanics, if you get instance of...
Definition pluginbase.c:2
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.

Definition at line 192 of file pluginmanager.c.

References g_Game, m_PluginRegister, and string::ToType().

Referenced by Init(), RegisterPluginDebug(), and RegisterPluginDiag().

◆ RegisterPluginDebug()

void RegisterPluginDebug ( string plugin_class_name,
bool reg_on_client,
bool reg_on_server )
inlineprotected

Register new PluginBase to PluginManager for storing and handling plugin.

Parameters
module_tpyetypename class type of plugin
Returns
void
class PluginRepairing extends PluginBase
{
...
}
RegisterPlugin(PluginRepairing);

Definition at line 240 of file pluginmanager.c.

References RegisterPlugin().

Referenced by Init().

◆ RegisterPluginDiag()

void RegisterPluginDiag ( string plugin_class_name,
bool reg_on_client,
bool reg_on_server )
inlineprotected

Definition at line 247 of file pluginmanager.c.

References RegisterPlugin().

Referenced by Init().

◆ UnregisterPlugin()

bool UnregisterPlugin ( string plugin_class_name)
inlineprotected

Definition at line 259 of file pluginmanager.c.

References m_PluginRegister, and string::ToType().

Field Documentation

◆ m_PluginRegister

ref array<typename> m_PluginRegister
private

Definition at line 3 of file pluginmanager.c.

Referenced by PluginManager(), PluginsInit(), RegisterPlugin(), and UnregisterPlugin().

◆ m_PluginsPtrs

ref map<typename, ref PluginBase> m_PluginsPtrs
private

The documentation for this class was generated from the following file: