TrinityCore
SpellScript::BeforeHitHandler Class Referencefinal

#include <SpellScript.h>

Public Types

using SpellBeforeHitFnType = void(SpellScript::*)(SpellMissInfo missInfo)
 
using SafeWrapperType = void(*)(SpellScript *spellScript, SpellMissInfo missInfo, SpellBeforeHitFnType callImpl)
 

Public Member Functions

template<typename ScriptFunc >
 BeforeHitHandler (ScriptFunc handler)
 
void Call (SpellScript *spellScript, SpellMissInfo missInfo) const
 

Private Attributes

SpellBeforeHitFnType _callImpl
 
SafeWrapperType _safeWrapper
 

Detailed Description

Definition at line 389 of file SpellScript.h.

Member Typedef Documentation

◆ SafeWrapperType

Definition at line 394 of file SpellScript.h.

◆ SpellBeforeHitFnType

Definition at line 392 of file SpellScript.h.

Constructor & Destructor Documentation

◆ BeforeHitHandler()

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

Definition at line 397 of file SpellScript.h.

Member Function Documentation

◆ Call()

void SpellScript::BeforeHitHandler::Call ( SpellScript spellScript,
SpellMissInfo  missInfo 
) const
inline

Definition at line 414 of file SpellScript.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _callImpl

SpellBeforeHitFnType SpellScript::BeforeHitHandler::_callImpl
private

Definition at line 419 of file SpellScript.h.

◆ _safeWrapper

SafeWrapperType SpellScript::BeforeHitHandler::_safeWrapper
private

Definition at line 420 of file SpellScript.h.


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