TrinityCore
ModuleReference Class Referenceabstract

#include <ScriptReloadMgr.h>

Public Member Functions

virtual ~ModuleReference ()
 
virtual char const * GetScriptModuleRevisionHash () const =0
 Returns the git revision hash of the referenced script module. More...
 
virtual char const * GetScriptModule () const =0
 Returns the name of the referenced script module. More...
 
virtual boost::filesystem::path const & GetModulePath () const =0
 Returns the path to the script module. More...
 

Detailed Description

Represents a strong reference to a dynamic library which provides C++ scripts. As long as one reference to the library exists the library is kept loaded in the server, which makes it possible to lazy unload several script types on demand (like SpellScripts), and to provide multiple versions of the same script to the script factories.

Acquire a new reference through using: ScriptReloadMgr::AcquireModuleReferenceOfContext

Definition at line 38 of file ScriptReloadMgr.h.

Constructor & Destructor Documentation

◆ ~ModuleReference()

virtual ModuleReference::~ModuleReference ( )
inlinevirtual

Definition at line 41 of file ScriptReloadMgr.h.

Member Function Documentation

◆ GetModulePath()

virtual boost::filesystem::path const & ModuleReference::GetModulePath ( ) const
pure virtual

Returns the path to the script module.

◆ GetScriptModule()

virtual char const * ModuleReference::GetScriptModule ( ) const
pure virtual

Returns the name of the referenced script module.

◆ GetScriptModuleRevisionHash()

virtual char const * ModuleReference::GetScriptModuleRevisionHash ( ) const
pure virtual

Returns the git revision hash of the referenced script module.


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