DayZ Enforce
Script API
Private Member Functions | Private Attributes | List of all members
ModuleManager Class Reference

#include <ModuleManager.h>

Private Member Functions

void  ModuleManager ()
 
void  ~ModuleManager ()
 
void  Init ()
 
void  ModulesInit ()
 
void  RegisterModule (string module_class_name, bool reg_on_client, bool reg_on_server, bool reg_on_release)
  Register new ModuleBase to ModuleManager for storing and handling module. More...
 
ModuleBase  GetModuleByType (typename module_type)
  Returns registred module by class type, better is to use global funtion GetModule(typename module_type) More...
 

Private Attributes

map< typename, ModuleBase m_ModulesPtrs
 

Constructor & Destructor Documentation

void ModuleManager::ModuleManager ( )
private
void ModuleManager::~ModuleManager ( )
private

References m_ModulesPtrs.

Member Function Documentation

void ModuleManager::Init ( )
private
void ModuleManager::ModulesInit ( )
private

References m_ModulesPtrs, and ModuleBase::OnInit().

Referenced by Init().

void ModuleManager::RegisterModule ( string  module_class_name,
bool  reg_on_client,
bool  reg_on_server,
bool  reg_on_release 
)
private

Register new ModuleBase to ModuleManager for storing and handling module.

Parameters
module_tpye typename class type of module
Returns
void
{
...
}
RegisterModule(Type("ModuleRepairing"));

References GetGame(), GetModuleByType(), m_ModulesPtrs, Spawn(), and Type().

Referenced by Init().

ModuleBase ModuleManager::GetModuleByType ( typename module_type  )
private

Returns registred module by class type, better is to use global funtion GetModule(typename module_type)

Parameters
module_tpye typename class type of module
Returns
ModuleBase
ModuleRepairing module = GetModuleManager().GetModuleByType(Type("ModuleRepairing"));

References m_ModulesPtrs.

Referenced by GetModule(), and RegisterModule().

Member Data Documentation

map<typename, ModuleBase> ModuleManager::m_ModulesPtrs
private

The documentation for this class was generated from the following files:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)