TrinityCore
|
Public Types | |
typedef std::unordered_multimap< std::string, std::unique_ptr< ScriptType > > | ScriptStoreType |
typedef ScriptStoreType::iterator | ScriptStoreIteratorType |
Public Member Functions | |
SpecializedScriptRegistry () | |
void | ReleaseContext (std::string const &context) final override |
void | SwapContext (bool initialize) final override |
Injects and updates the changed script objects. More... | |
void | RemoveUsedScriptsFromContainer (std::unordered_set< std::string > &scripts) final override |
void | Unload () final override |
Unloads the script registry. More... | |
void | SyncScriptNames () final override |
Updates the scripts to reflect the current id. More... | |
void | AddScript (ScriptType *script) |
ScriptStoreType & | GetScripts () |
Public Member Functions inherited from ScriptRegistryInterface | |
ScriptRegistryInterface () | |
virtual | ~ScriptRegistryInterface () |
ScriptRegistryInterface (ScriptRegistryInterface const &)=delete | |
ScriptRegistryInterface (ScriptRegistryInterface &&)=delete | |
ScriptRegistryInterface & | operator= (ScriptRegistryInterface const &)=delete |
ScriptRegistryInterface & | operator= (ScriptRegistryInterface &&)=delete |
virtual void | ReleaseContext (std::string const &context)=0 |
virtual void | SwapContext (bool initialize)=0 |
Injects and updates the changed script objects. More... | |
virtual void | RemoveUsedScriptsFromContainer (std::unordered_set< std::string > &scripts)=0 |
virtual void | Unload ()=0 |
Unloads the script registry. More... | |
virtual void | SyncScriptNames ()=0 |
Updates the scripts to reflect the current id. More... | |
Public Member Functions inherited from ScriptRegistrySwapHookBase | |
ScriptRegistrySwapHookBase () | |
virtual | ~ScriptRegistrySwapHookBase () |
ScriptRegistrySwapHookBase (ScriptRegistrySwapHookBase const &)=delete | |
ScriptRegistrySwapHookBase (ScriptRegistrySwapHookBase &&)=delete | |
ScriptRegistrySwapHookBase & | operator= (ScriptRegistrySwapHookBase const &)=delete |
ScriptRegistrySwapHookBase & | operator= (ScriptRegistrySwapHookBase &&)=delete |
virtual void | BeforeReleaseContext (std::string const &) |
Called before the actual context release happens. More... | |
virtual void | BeforeSwapContext (bool) |
Called before SwapContext. More... | |
virtual void | BeforeUnload () |
Called before Unload. More... | |
virtual void | OnScriptNamesSync () |
Called manually to sync scriptnames. More... | |
Private Attributes | |
ScriptStoreType | _scripts |
Friends | |
template<typename , typename > | |
class | ScriptRegistrySwapHooks |
Definition at line 1091 of file ScriptMgr.cpp.
typedef ScriptStoreType::iterator SpecializedScriptRegistry< ScriptType, false >::ScriptStoreIteratorType |
Definition at line 1100 of file ScriptMgr.cpp.
typedef std::unordered_multimap<std::string , std::unique_ptr<ScriptType> > SpecializedScriptRegistry< ScriptType, false >::ScriptStoreType |
Definition at line 1099 of file ScriptMgr.cpp.
|
inline |
Definition at line 1102 of file ScriptMgr.cpp.
|
inline |
Definition at line 1134 of file ScriptMgr.cpp.
|
inline |
Definition at line 1157 of file ScriptMgr.cpp.
|
inlinefinaloverridevirtual |
Removes all scripts associated with the given script context. Requires ScriptRegistryBase::SwapContext to be called after all transfers have finished.
Implements ScriptRegistryInterface.
Definition at line 1104 of file ScriptMgr.cpp.
|
inlinefinaloverridevirtual |
Removes the scripts used by this registry from the given container. Used to find unused script names.
Implements ScriptRegistryInterface.
Definition at line 1116 of file ScriptMgr.cpp.
|
inlinefinaloverridevirtual |
Injects and updates the changed script objects.
Implements ScriptRegistryInterface.
Definition at line 1111 of file ScriptMgr.cpp.
|
inlinefinaloverridevirtual |
Updates the scripts to reflect the current id.
Implements ScriptRegistryInterface.
Definition at line 1129 of file ScriptMgr.cpp.
|
inlinefinaloverridevirtual |
Unloads the script registry.
Implements ScriptRegistryInterface.
Definition at line 1122 of file ScriptMgr.cpp.
|
friend |
Definition at line 1096 of file ScriptMgr.cpp.
|
private |
Definition at line 1163 of file ScriptMgr.cpp.