DayZ 1.24
Loading...
Searching...
No Matches
PluginManager.c File Reference

Go to the source code of this file.

Classes

class  PluginManager
 

Functions

PluginManager GetPluginManager ()
 Returns registred plugin by class type, better is to use global funtion GetPlugin(typename plugin_type)
 
void PluginManagerInit ()
 
void PluginManagerDelete ()
 
bool IsPluginManagerExists ()
 
PluginBase GetPlugin (typename plugin_type)
 
bool IsModuleExist (typename plugin_type)
 

Variables

class PluginManager g_Plugins
 

Function Documentation

◆ GetPlugin()

Definition at line 300 of file PluginManager.c.

301{
303
305 {
307
308 if (plugin == null)
309 {
310#ifdef DIAG_DEVELOPER
312 {
313 PrintString("Module " + plugin_type.ToString() + " is not Registred in PluginManager.c!");
314 DumpStack();
315 }
316#endif
317 }
318 }
319
320 return plugin;
321}
PluginManager GetPluginManager()
Returns registred plugin by class type, better is to use global funtion GetPlugin(typename plugin_typ...
bool IsPluginManagerExists()
PluginBase GetPluginByType(typename plugin_type)
Returns registred plugin by class type, better is to use global funtion GetPlugin(typename plugin_typ...
proto void DumpStack()
Prints current call stack (stack trace)
void PrintString(string s)
Helper for printing out string expression. Example: PrintString("Hello " + var);.
Definition EnScript.c:344

References DumpStack(), PluginManager::GetPluginByType(), GetPluginManager(), IsPluginManagerExists(), and PrintString().

Referenced by ActionCondition(), ActionRepairShelter::ActionCondition(), ActionRepairTent::ActionCondition(), ActionRepairTentPart::ActionCondition(), ActionContinuousBase::ActionContinuousBase(), ActionBandageBase::ApplyBandage(), ApplyBandage(), ActionEatMeat::ApplyModifiers(), RecipeBase::CanDo(), InventoryItem::CanRepair(), ManBase::Consume(), ActionCollectBloodTargetLambda::CopyOldPropertiesToNew(), Debug(), MessageReceiverBase::DisplayElementBase(), RecipeBase::Do(), ManBase::EEHitBy(), EmoteManager(), Liquid::FillContainerEnviro(), PluginBase::GetConfig(), ManBase::GetDebugActions(), PluginBase::GetInstance(), PluginConfigHandler::GetInstance(), GetInstance(), Attachments::GetRecipeCount(), HandsContainer::GetRecipeCount(), PlayerContainer::GetRecipeCount(), ItemManager::GetRecipeCount(), Container::GetRecipeCount(), InventoryItem::GetRecipesActions(), UIPopupScript::GetSceneEditor(), ActionWorldCraft::GetSoundCategory(), ActionWorldCraft::GetText(), HideCrosshairVisibility(), HudDebugWinCharModifiers(), HudDebugWinBase::HudDebugWinTemperature(), InventoryItem::IDToName(), BleedingCheckMdfr::Init(), ManBase::Init(), UIScriptedMenu::Init(), ScriptConsoleConfigTab::Init(), SceneObject::Init(), ManBase::InitEditor(), Inventory(), IsModuleExist(), InventoryItem::ItemBase(), ScriptConsoleGeneralTab::LateInit(), ScriptConsoleItemsTab::ListItemRelatedActions(), BaseBuildingBase::LogAnimateFlag(), MessageReceiverBase::MessageReceiverBase(), MissionBaseWorld::MissionBase(), ModifierBase(), InventoryItem::NameToID(), NotifierBase::NotifierBase(), InventoryItem::OnAction(), ActionWorldCraft::OnActionInfoUpdate(), SymptomBase::OnAnimationFinish(), SymptomBase::OnAnimationStart(), ScriptConsoleGeneralTab::OnChange(), UIPopupScript::OnClick(), UIPropertyAttachment::OnClick(), ScriptConsoleGeneralTab::OnClick(), ActionConsume::OnEndServer(), ActionGiveBloodSelf::OnEndServer(), ActionGiveBloodTarget::OnEndServer(), ActionInteractLoopBase::OnEndServer(), OnEndServer(), ActionWashHandsItem::OnEndServer(), MissionBase::OnEvent(), OnFinishProgressServer(), ActionRepairPart::OnFinishProgressServer(), ActionRepairShelter::OnFinishProgressServer(), ActionRepairTent::OnFinishProgressServer(), ActionWashHandsItemContinuous::OnFinishProgressServer(), ActionWorldCraft::OnFinishProgressServer(), ActionTestBloodSelf::OnFinishProgressServer(), ActionTestBloodTarget::OnFinishProgressServer(), OnInit(), PluginBase::OnInit(), PluginBase::OnKeyPress(), PluginBase::OnMouse(), UIPopupScript::OnOpen(), BaseBuildingBase::OnPartBuiltServer(), ManBase::OnRPC(), PluginBase::OnRPCPluginDayzCreatureDebug(), PluginBase::OnRPCSyncSceneObject(), ManBase::OnSelectPlayer(), DeveloperFreeCamera::OnSetFreeCameraEvent(), ActionTestBloodTarget::OnStartServer(), ItemBase::PlantBase(), ItemBase::PlantSeed(), RefreshByLocalProfile(), RefreshCrosshairVisibility(), InventoryItem::Repair(), ActionRepairTent::RepairDamageTransfer(), ManBase::ResetPlayer(), PluginConfigHandler::SceneDataSave(), UIScriptedMenu::SceneEditorMenu(), UIScriptedMenu::ScriptConsole(), ScriptConsoleEnfScriptTab::ScriptConsoleEnfScriptTab(), ScriptConsoleGeneralTab::ScriptConsoleGeneralTab(), ScriptConsoleItemsTab::ScriptConsoleItemsTab(), ScriptConsoleTabBase::ScriptConsoleTabBase(), Dispatcher::SendLogAtClient(), SetAgents(), HudDebugWinBase::SetContentValues(), PluginBase::SetDeveloperItemClientEx(), ManBase::SetHairLevelToHide(), CAContinuousCraft::Setup(), SetUpdate(), HudDebugWinBase::SetUpdate(), HudDebugWinBase::SetupValues(), HudDebugWinBase::SetValues(), MissionBase::ShowHairDebugValues(), ScriptConsoleItemsTab::SpawnPreset(), ManBase::SpreadAgentsEx(), Liquid::Transfer(), AreaExposureMdfr::TransmitAgents(), UIPopupScript::UIPopupScriptEditorSettings(), UIPopupScript::UIPopupScriptInitScript(), UIPopupScript::UIPopupScriptPositionManager(), HudDebugWinBase::Update(), MissionBase::UpdatePlayersStats(), UIPopupScript::UpdateSceneList(), HudDebugWinBase::UpdateValues(), UIScriptedMenu::~ScriptConsole(), and ScriptConsoleGeneralTab::~ScriptConsoleGeneralTab().

◆ GetPluginManager()

PluginManager GetPluginManager ( )

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

Definition at line 260 of file PluginManager.c.

261{
262 /*
263 if ( g_Plugins == NULL )
264 {
265 PluginManagerInit();
266 }
267 */
268
269 return g_Plugins;
270}
class PluginManager g_Plugins

References g_Plugins.

Referenced by DayZInfected::CommandHandlerDebug(), DayZPlayer::CommandHandlerDebug(), and GetPlugin().

◆ IsModuleExist()

bool IsModuleExist ( typename plugin_type )

Definition at line 323 of file PluginManager.c.

324{
326 return (GetPlugin(plugin_type) != NULL);
327
328 return false;
329}
PluginBase GetPlugin(typename plugin_type)

References GetPlugin(), and IsPluginManagerExists().

Referenced by UIScriptedMenu::~SceneEditorMenu().

◆ IsPluginManagerExists()

bool IsPluginManagerExists ( )

Definition at line 292 of file PluginManager.c.

293{
294 if (g_Plugins != null)
295 return true;
296
297 return false;
298}

References g_Plugins.

Referenced by GetPlugin(), PlayerAgentPool::GrowAgents(), IsModuleExist(), MessageReceiverBase::Unsubscribe(), and MessageReceiverBase::UnsubscribeAll().

◆ PluginManagerDelete()

void PluginManagerDelete ( )

Definition at line 283 of file PluginManager.c.

284{
285 if (g_Plugins)
286 {
287 delete g_Plugins;
288 g_Plugins = NULL;
289 }
290}

References g_Plugins.

Referenced by MissionBaseWorld::~MissionBase().

◆ PluginManagerInit()

void PluginManagerInit ( )

Definition at line 273 of file PluginManager.c.

274{
275 if (g_Plugins == NULL)
276 {
278 g_Plugins.Init();
279 g_Plugins.PluginsInit();
280 }
281}

References g_Plugins.

Referenced by MissionBaseWorld::MissionBase().

Variable Documentation

◆ g_Plugins