TrinityCore
SpellScript::CastHandler Class Referencefinal

#include <SpellScript.h>

Public Types

using SpellCastFnType = void(SpellScript::*)()
 
using SafeWrapperType = void(*)(SpellScript *spellScript, SpellCastFnType callImpl)
 

Public Member Functions

template<typename ScriptFunc >
 CastHandler (ScriptFunc handler)
 
void Call (SpellScript *spellScript) const
 

Private Attributes

SpellCastFnType _callImpl
 
SafeWrapperType _safeWrapper
 

Detailed Description

Definition at line 253 of file SpellScript.h.

Member Typedef Documentation

◆ SafeWrapperType

Definition at line 258 of file SpellScript.h.

◆ SpellCastFnType

using SpellScript::CastHandler::SpellCastFnType = void(SpellScript::*)()

Definition at line 256 of file SpellScript.h.

Constructor & Destructor Documentation

◆ CastHandler()

template<typename ScriptFunc >
SpellScript::CastHandler::CastHandler ( ScriptFunc  handler)
inlineexplicit

Definition at line 261 of file SpellScript.h.

Member Function Documentation

◆ Call()

void SpellScript::CastHandler::Call ( SpellScript spellScript) const
inline

Definition at line 278 of file SpellScript.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _callImpl

SpellCastFnType SpellScript::CastHandler::_callImpl
private

Definition at line 283 of file SpellScript.h.

◆ _safeWrapper

SafeWrapperType SpellScript::CastHandler::_safeWrapper
private

Definition at line 284 of file SpellScript.h.


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