TrinityCore
SpellScript::OnCalculateResistAbsorbHandler Class Referencefinal

#include <SpellScript.h>

Classes

union  SpellOnResistAbsorbCalculateFnType
 

Public Types

using SafeWrapperType = void(*)(SpellScript *spellScript, DamageInfo const &damageInfo, uint32 &resistAmount, int32 &absorbAmount, SpellOnResistAbsorbCalculateFnType callImpl)
 

Public Member Functions

template<typename ScriptFunc >
 OnCalculateResistAbsorbHandler (ScriptFunc handler)
 
void Call (SpellScript *spellScript, DamageInfo const &damageInfo, uint32 &resistAmount, int32 &absorbAmount) const
 

Private Attributes

SpellOnResistAbsorbCalculateFnType _callImpl
 
SafeWrapperType _safeWrapper
 

Detailed Description

Definition at line 748 of file SpellScript.h.

Member Typedef Documentation

◆ SafeWrapperType

using SpellScript::OnCalculateResistAbsorbHandler::SafeWrapperType = void(*)(SpellScript* spellScript, DamageInfo const& damageInfo, uint32& resistAmount, int32& absorbAmount, SpellOnResistAbsorbCalculateFnType callImpl)

Definition at line 757 of file SpellScript.h.

Constructor & Destructor Documentation

◆ OnCalculateResistAbsorbHandler()

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

Definition at line 760 of file SpellScript.h.

Member Function Documentation

◆ Call()

void SpellScript::OnCalculateResistAbsorbHandler::Call ( SpellScript spellScript,
DamageInfo const &  damageInfo,
uint32 resistAmount,
int32 absorbAmount 
) const
inline

Definition at line 791 of file SpellScript.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _callImpl

SpellOnResistAbsorbCalculateFnType SpellScript::OnCalculateResistAbsorbHandler::_callImpl
private

Definition at line 796 of file SpellScript.h.

◆ _safeWrapper

SafeWrapperType SpellScript::OnCalculateResistAbsorbHandler::_safeWrapper
private

Definition at line 797 of file SpellScript.h.


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