TrinityCore
ScriptReloadMgr Class Reference

#include <ScriptReloadMgr.h>

Public Member Functions

virtual ~ScriptReloadMgr ()
 
virtual void Initialize ()
 Initializes the ScriptReloadMgr. More...
 
virtual void Update ()
 
virtual void Unload ()
 Unloads the ScriptReloadMgr. More...
 

Static Public Member Functions

static std::shared_ptr< ModuleReferenceAcquireModuleReferenceOfContext (std::string const &context)
 Returns an owning reference to the current module of the given context. More...
 
static ScriptReloadMgrinstance ()
 Returns the unique ScriptReloadMgr singleton instance. More...
 

Protected Member Functions

 ScriptReloadMgr ()
 

Detailed Description

Provides the whole physical dynamic library unloading capability. Loads, Reloads and Unloads dynamic libraries on changes and informs the ScriptMgr about changes which were made. The ScriptReloadMgr is also responsible for watching the source directory and to invoke a build on changes.

Definition at line 56 of file ScriptReloadMgr.h.

Constructor & Destructor Documentation

◆ ScriptReloadMgr()

ScriptReloadMgr::ScriptReloadMgr ( )
inlineprotected

Definition at line 59 of file ScriptReloadMgr.h.

◆ ~ScriptReloadMgr()

virtual ScriptReloadMgr::~ScriptReloadMgr ( )
inlinevirtual

Definition at line 62 of file ScriptReloadMgr.h.

Member Function Documentation

◆ AcquireModuleReferenceOfContext()

std::shared_ptr< ModuleReference > ScriptReloadMgr::AcquireModuleReferenceOfContext ( std::string const &  context)
static

Returns an owning reference to the current module of the given context.

Definition at line 25 of file ScriptReloadMgr.cpp.

+ Here is the caller graph for this function:

◆ Initialize()

virtual void ScriptReloadMgr::Initialize ( )
inlinevirtual

Initializes the ScriptReloadMgr.

Definition at line 65 of file ScriptReloadMgr.h.

◆ instance()

ScriptReloadMgr * ScriptReloadMgr::instance ( )
static

Returns the unique ScriptReloadMgr singleton instance.

Definition at line 31 of file ScriptReloadMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Unload()

virtual void ScriptReloadMgr::Unload ( )
inlinevirtual

Unloads the ScriptReloadMgr.

Definition at line 73 of file ScriptReloadMgr.h.

◆ Update()

virtual void ScriptReloadMgr::Update ( )
inlinevirtual

Needs to be called periodically to check for updates on script modules. Expects to be invoked in a thread safe way which means it's required that the current thread is the only one which accesses the world data.

Definition at line 70 of file ScriptReloadMgr.h.


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