TrinityCore
|
#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< ModuleReference > | AcquireModuleReferenceOfContext (std::string const &context) |
Returns an owning reference to the current module of the given context. More... | |
static ScriptReloadMgr * | instance () |
Returns the unique ScriptReloadMgr singleton instance. More... | |
Protected Member Functions | |
ScriptReloadMgr () | |
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.
|
inlineprotected |
Definition at line 59 of file ScriptReloadMgr.h.
|
inlinevirtual |
Definition at line 62 of file ScriptReloadMgr.h.
|
static |
Returns an owning reference to the current module of the given context.
Definition at line 25 of file ScriptReloadMgr.cpp.
|
inlinevirtual |
Initializes the ScriptReloadMgr.
Definition at line 65 of file ScriptReloadMgr.h.
|
static |
Returns the unique ScriptReloadMgr singleton instance.
Definition at line 31 of file ScriptReloadMgr.cpp.
|
inlinevirtual |
Unloads the ScriptReloadMgr.
Definition at line 73 of file ScriptReloadMgr.h.
|
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.