TrinityCore
CastSpellExtraArgs Struct Reference

#include <SpellDefines.h>

+ Inheritance diagram for CastSpellExtraArgs:

Public Member Functions

 CastSpellExtraArgs ()
 
 CastSpellExtraArgs (bool triggered)
 
 CastSpellExtraArgs (TriggerCastFlags trigger)
 
 CastSpellExtraArgs (Item *item)
 
 CastSpellExtraArgs (Spell const *triggeringSpell)
 
 CastSpellExtraArgs (AuraEffect const *eff)
 
 CastSpellExtraArgs (Difficulty castDifficulty)
 
 CastSpellExtraArgs (SpellValueMod mod, int32 val)
 
 CastSpellExtraArgs (SpellValueModFloat mod, float val)
 
 CastSpellExtraArgs (CastSpellExtraArgsInit &&init)
 
 CastSpellExtraArgs (CastSpellExtraArgs const &other)
 
 CastSpellExtraArgs (CastSpellExtraArgs &&other) noexcept
 
CastSpellExtraArgsoperator= (CastSpellExtraArgs const &other)
 
CastSpellExtraArgsoperator= (CastSpellExtraArgs &&other) noexcept
 
 ~CastSpellExtraArgs ()
 
CastSpellExtraArgsSetTriggerFlags (TriggerCastFlags flag)
 
CastSpellExtraArgsSetCastItem (Item *item)
 
CastSpellExtraArgsSetTriggeringSpell (Spell const *triggeringSpell)
 
CastSpellExtraArgsSetTriggeringAura (AuraEffect const *triggeringAura)
 
CastSpellExtraArgsSetOriginalCaster (ObjectGuid const &guid)
 
CastSpellExtraArgsSetCastDifficulty (Difficulty castDifficulty)
 
CastSpellExtraArgsSetOriginalCastId (ObjectGuid const &castId)
 
CastSpellExtraArgsAddSpellMod (SpellValueMod mod, int32 val)
 
CastSpellExtraArgsAddSpellMod (SpellValueModFloat mod, float val)
 
CastSpellExtraArgsAddSpellBP0 (int32 val)
 
CastSpellExtraArgsSetCustomArg (std::any customArg)
 
CastSpellExtraArgsSetScriptResult (Scripting::v2::ActionResultSetter< SpellCastResult > scriptResult)
 
CastSpellExtraArgsSetScriptWaitsForSpellHit (bool scriptWaitsForSpellHit)
 

Additional Inherited Members

- Public Attributes inherited from CastSpellExtraArgsInit
TriggerCastFlags TriggerFlags = TRIGGERED_NONE
 
Difficulty CastDifficulty = Difficulty(0)
 
ItemCastItem = nullptr
 
Spell const * TriggeringSpell = nullptr
 
AuraEffect const * TriggeringAura = nullptr
 
ObjectGuid OriginalCaster = ObjectGuid::Empty
 
ObjectGuid OriginalCastId = ObjectGuid::Empty
 
Optional< int32OriginalCastItemLevel
 
std::vector< SpellValueOverrideSpellValueOverrides
 
std::any CustomArg
 
Optional< Scripting::v2::ActionResultSetter< SpellCastResult > > ScriptResult
 
bool ScriptWaitsForSpellHit = false
 

Detailed Description

Definition at line 487 of file SpellDefines.h.

Constructor & Destructor Documentation

◆ CastSpellExtraArgs() [1/12]

CastSpellExtraArgs::CastSpellExtraArgs ( )
default

◆ CastSpellExtraArgs() [2/12]

CastSpellExtraArgs::CastSpellExtraArgs ( bool  triggered)
inline

Definition at line 490 of file SpellDefines.h.

◆ CastSpellExtraArgs() [3/12]

CastSpellExtraArgs::CastSpellExtraArgs ( TriggerCastFlags  trigger)
inline

Definition at line 491 of file SpellDefines.h.

◆ CastSpellExtraArgs() [4/12]

CastSpellExtraArgs::CastSpellExtraArgs ( Item item)
inline

Definition at line 492 of file SpellDefines.h.

◆ CastSpellExtraArgs() [5/12]

CastSpellExtraArgs::CastSpellExtraArgs ( Spell const *  triggeringSpell)
inline

Definition at line 493 of file SpellDefines.h.

◆ CastSpellExtraArgs() [6/12]

CastSpellExtraArgs::CastSpellExtraArgs ( AuraEffect const *  eff)
inline

Definition at line 494 of file SpellDefines.h.

◆ CastSpellExtraArgs() [7/12]

CastSpellExtraArgs::CastSpellExtraArgs ( Difficulty  castDifficulty)
inline

Definition at line 495 of file SpellDefines.h.

◆ CastSpellExtraArgs() [8/12]

CastSpellExtraArgs::CastSpellExtraArgs ( SpellValueMod  mod,
int32  val 
)
inline

Definition at line 496 of file SpellDefines.h.

◆ CastSpellExtraArgs() [9/12]

CastSpellExtraArgs::CastSpellExtraArgs ( SpellValueModFloat  mod,
float  val 
)
inline

Definition at line 497 of file SpellDefines.h.

◆ CastSpellExtraArgs() [10/12]

CastSpellExtraArgs::CastSpellExtraArgs ( CastSpellExtraArgsInit &&  init)
inline

Definition at line 498 of file SpellDefines.h.

◆ CastSpellExtraArgs() [11/12]

CastSpellExtraArgs::CastSpellExtraArgs ( CastSpellExtraArgs const &  other)
default

◆ CastSpellExtraArgs() [12/12]

CastSpellExtraArgs::CastSpellExtraArgs ( CastSpellExtraArgs &&  other)
defaultnoexcept

◆ ~CastSpellExtraArgs()

CastSpellExtraArgs::~CastSpellExtraArgs ( )
default

Member Function Documentation

◆ AddSpellBP0()

CastSpellExtraArgs & CastSpellExtraArgs::AddSpellBP0 ( int32  val)
inline

Definition at line 517 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ AddSpellMod() [1/2]

CastSpellExtraArgs & CastSpellExtraArgs::AddSpellMod ( SpellValueMod  mod,
int32  val 
)
inline

Definition at line 515 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ AddSpellMod() [2/2]

CastSpellExtraArgs & CastSpellExtraArgs::AddSpellMod ( SpellValueModFloat  mod,
float  val 
)
inline

Definition at line 516 of file SpellDefines.h.

◆ operator=() [1/2]

CastSpellExtraArgs & CastSpellExtraArgs::operator= ( CastSpellExtraArgs &&  other)
defaultnoexcept

◆ operator=() [2/2]

CastSpellExtraArgs & CastSpellExtraArgs::operator= ( CastSpellExtraArgs const &  other)
default

◆ SetCastDifficulty()

CastSpellExtraArgs & CastSpellExtraArgs::SetCastDifficulty ( Difficulty  castDifficulty)
inline

Definition at line 513 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetCastItem()

CastSpellExtraArgs & CastSpellExtraArgs::SetCastItem ( Item item)
inline

Definition at line 509 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetCustomArg()

CastSpellExtraArgs & CastSpellExtraArgs::SetCustomArg ( std::any  customArg)
inline

Definition at line 518 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetOriginalCaster()

CastSpellExtraArgs & CastSpellExtraArgs::SetOriginalCaster ( ObjectGuid const &  guid)
inline

Definition at line 512 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetOriginalCastId()

CastSpellExtraArgs & CastSpellExtraArgs::SetOriginalCastId ( ObjectGuid const &  castId)
inline

Definition at line 514 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetScriptResult()

CastSpellExtraArgs & CastSpellExtraArgs::SetScriptResult ( Scripting::v2::ActionResultSetter< SpellCastResult scriptResult)
inline

Definition at line 519 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetScriptWaitsForSpellHit()

CastSpellExtraArgs & CastSpellExtraArgs::SetScriptWaitsForSpellHit ( bool  scriptWaitsForSpellHit)
inline

Definition at line 520 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetTriggerFlags()

CastSpellExtraArgs & CastSpellExtraArgs::SetTriggerFlags ( TriggerCastFlags  flag)
inline

Definition at line 508 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetTriggeringAura()

CastSpellExtraArgs & CastSpellExtraArgs::SetTriggeringAura ( AuraEffect const *  triggeringAura)
inline

Definition at line 511 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetTriggeringSpell()

CastSpellExtraArgs & CastSpellExtraArgs::SetTriggeringSpell ( Spell const *  triggeringSpell)

Definition at line 9692 of file Spell.cpp.

+ Here is the caller graph for this function:

The documentation for this struct was generated from the following files: