TrinityCore
SpellScript::OnCalcCritChanceHandler Class Referencefinal

#include <SpellScript.h>

Classes

union  SpellOnCalcCritChanceFnType
 

Public Types

using SafeWrapperType = void(*)(SpellScript *spellScript, Unit const *victim, float &critChance, SpellOnCalcCritChanceFnType callImpl)
 

Public Member Functions

template<typename ScriptFunc >
 OnCalcCritChanceHandler (ScriptFunc handler)
 
void Call (SpellScript *spellScript, Unit const *victim, float &critChance) const
 

Private Attributes

SpellOnCalcCritChanceFnType _callImpl
 
SafeWrapperType _safeWrapper
 

Detailed Description

Definition at line 455 of file SpellScript.h.

Member Typedef Documentation

◆ SafeWrapperType

using SpellScript::OnCalcCritChanceHandler::SafeWrapperType = void(*)(SpellScript* spellScript, Unit const* victim, float& critChance, SpellOnCalcCritChanceFnType callImpl)

Definition at line 464 of file SpellScript.h.

Constructor & Destructor Documentation

◆ OnCalcCritChanceHandler()

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

Definition at line 467 of file SpellScript.h.

Member Function Documentation

◆ Call()

void SpellScript::OnCalcCritChanceHandler::Call ( SpellScript spellScript,
Unit const *  victim,
float &  critChance 
) const
inline

Definition at line 498 of file SpellScript.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _callImpl

SpellOnCalcCritChanceFnType SpellScript::OnCalcCritChanceHandler::_callImpl
private

Definition at line 503 of file SpellScript.h.

◆ _safeWrapper

SafeWrapperType SpellScript::OnCalcCritChanceHandler::_safeWrapper
private

Definition at line 504 of file SpellScript.h.


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