TrinityCore
AuraScript::EnterLeaveCombatHandler Class Referencefinal

#include <SpellScript.h>

Public Types

using AuraEnterLeaveCombatFnType = void(AuraScript::*)(bool isNowInCombat)
 
using SafeWrapperType = void(*)(AuraScript *auraScript, bool isNowInCombat, AuraEnterLeaveCombatFnType callImpl)
 

Public Member Functions

template<typename ScriptFunc >
 EnterLeaveCombatHandler (ScriptFunc handler)
 
void Call (AuraScript *auraScript, bool isNowInCombat) const
 

Private Attributes

AuraEnterLeaveCombatFnType _callImpl
 
SafeWrapperType _safeWrapper
 

Detailed Description

Definition at line 1936 of file SpellScript.h.

Member Typedef Documentation

◆ AuraEnterLeaveCombatFnType

using AuraScript::EnterLeaveCombatHandler::AuraEnterLeaveCombatFnType = void(AuraScript::*)(bool isNowInCombat)

Definition at line 1939 of file SpellScript.h.

◆ SafeWrapperType

using AuraScript::EnterLeaveCombatHandler::SafeWrapperType = void(*)(AuraScript* auraScript, bool isNowInCombat, AuraEnterLeaveCombatFnType callImpl)

Definition at line 1941 of file SpellScript.h.

Constructor & Destructor Documentation

◆ EnterLeaveCombatHandler()

template<typename ScriptFunc >
AuraScript::EnterLeaveCombatHandler::EnterLeaveCombatHandler ( ScriptFunc  handler)
inlineexplicit

Definition at line 1944 of file SpellScript.h.

Member Function Documentation

◆ Call()

void AuraScript::EnterLeaveCombatHandler::Call ( AuraScript auraScript,
bool  isNowInCombat 
) const
inline

Definition at line 1961 of file SpellScript.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _callImpl

AuraEnterLeaveCombatFnType AuraScript::EnterLeaveCombatHandler::_callImpl
private

Definition at line 1966 of file SpellScript.h.

◆ _safeWrapper

SafeWrapperType AuraScript::EnterLeaveCombatHandler::_safeWrapper
private

Definition at line 1967 of file SpellScript.h.


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