TrinityCore
SpellScript::HitHandler Class Referencefinal

#include <SpellScript.h>

Public Types

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

Public Member Functions

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

Private Attributes

SpellHitFnType _callImpl
 
SafeWrapperType _safeWrapper
 

Detailed Description

Definition at line 423 of file SpellScript.h.

Member Typedef Documentation

◆ SafeWrapperType

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

Definition at line 428 of file SpellScript.h.

◆ SpellHitFnType

using SpellScript::HitHandler::SpellHitFnType = void(SpellScript::*)()

Definition at line 426 of file SpellScript.h.

Constructor & Destructor Documentation

◆ HitHandler()

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

Definition at line 431 of file SpellScript.h.

Member Function Documentation

◆ Call()

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

Definition at line 448 of file SpellScript.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _callImpl

SpellHitFnType SpellScript::HitHandler::_callImpl
private

Definition at line 453 of file SpellScript.h.

◆ _safeWrapper

SafeWrapperType SpellScript::HitHandler::_safeWrapper
private

Definition at line 454 of file SpellScript.h.


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