TrinityCore
ScriptRegistrySwapHooks< OutdoorPvPScript, Base > Class Template Reference

This hook is responsible for swapping OutdoorPvP's. More...

+ Inheritance diagram for ScriptRegistrySwapHooks< OutdoorPvPScript, Base >:

Public Member Functions

 ScriptRegistrySwapHooks ()
 
void BeforeReleaseContext (std::string const &context) final override
 Called before the actual context release happens. More...
 
void BeforeSwapContext (bool initialize) override
 Called before SwapContext. More...
 
void BeforeUnload () final override
 Called before Unload. More...
 
- Public Member Functions inherited from ScriptRegistrySwapHookBase
 ScriptRegistrySwapHookBase ()
 
virtual ~ScriptRegistrySwapHookBase ()
 
 ScriptRegistrySwapHookBase (ScriptRegistrySwapHookBase const &)=delete
 
 ScriptRegistrySwapHookBase (ScriptRegistrySwapHookBase &&)=delete
 
ScriptRegistrySwapHookBaseoperator= (ScriptRegistrySwapHookBase const &)=delete
 
ScriptRegistrySwapHookBaseoperator= (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

bool swapped
 

Detailed Description

template<typename Base>
class ScriptRegistrySwapHooks< OutdoorPvPScript, Base >

This hook is responsible for swapping OutdoorPvP's.

Definition at line 764 of file ScriptMgr.cpp.

Constructor & Destructor Documentation

◆ ScriptRegistrySwapHooks()

Definition at line 768 of file ScriptMgr.cpp.

Member Function Documentation

◆ BeforeReleaseContext()

template<typename Base >
void ScriptRegistrySwapHooks< OutdoorPvPScript, Base >::BeforeReleaseContext ( std::string const &  )
inlinefinaloverridevirtual

Called before the actual context release happens.

Reimplemented from ScriptRegistrySwapHookBase.

Definition at line 770 of file ScriptMgr.cpp.

◆ BeforeSwapContext()

template<typename Base >
void ScriptRegistrySwapHooks< OutdoorPvPScript, Base >::BeforeSwapContext ( bool  )
inlineoverridevirtual

Called before SwapContext.

Reimplemented from ScriptRegistrySwapHookBase.

Definition at line 781 of file ScriptMgr.cpp.

◆ BeforeUnload()

template<typename Base >
void ScriptRegistrySwapHooks< OutdoorPvPScript, Base >::BeforeUnload ( )
inlinefinaloverridevirtual

Called before Unload.

Reimplemented from ScriptRegistrySwapHookBase.

Definition at line 791 of file ScriptMgr.cpp.

Member Data Documentation

◆ swapped

template<typename Base >
bool ScriptRegistrySwapHooks< OutdoorPvPScript, Base >::swapped
private

Definition at line 797 of file ScriptMgr.cpp.


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