TrinityCore
Loading...
Searching...
No Matches
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, SpellEffectValue 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, SpellEffectValue val)
 
CastSpellExtraArgsAddSpellBP0 (SpellEffectValue 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
 
Scripting::v2::ActionResultSetter< SpellCastResultScriptResult
 
bool ScriptWaitsForSpellHit = false
 

Detailed Description

Definition at line 520 of file SpellDefines.h.

Constructor & Destructor Documentation

◆ CastSpellExtraArgs() [1/12]

CastSpellExtraArgs::CastSpellExtraArgs ( )
default

◆ CastSpellExtraArgs() [2/12]

CastSpellExtraArgs::CastSpellExtraArgs ( bool  triggered)
inline

Definition at line 523 of file SpellDefines.h.

◆ CastSpellExtraArgs() [3/12]

CastSpellExtraArgs::CastSpellExtraArgs ( TriggerCastFlags  trigger)
inline

Definition at line 524 of file SpellDefines.h.

◆ CastSpellExtraArgs() [4/12]

CastSpellExtraArgs::CastSpellExtraArgs ( Item item)
inline

Definition at line 525 of file SpellDefines.h.

◆ CastSpellExtraArgs() [5/12]

CastSpellExtraArgs::CastSpellExtraArgs ( Spell const *  triggeringSpell)
inline

Definition at line 526 of file SpellDefines.h.

◆ CastSpellExtraArgs() [6/12]

CastSpellExtraArgs::CastSpellExtraArgs ( AuraEffect const *  eff)
inline

Definition at line 527 of file SpellDefines.h.

◆ CastSpellExtraArgs() [7/12]

CastSpellExtraArgs::CastSpellExtraArgs ( Difficulty  castDifficulty)
inline

Definition at line 528 of file SpellDefines.h.

◆ CastSpellExtraArgs() [8/12]

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

Definition at line 529 of file SpellDefines.h.

◆ CastSpellExtraArgs() [9/12]

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

Definition at line 530 of file SpellDefines.h.

◆ CastSpellExtraArgs() [10/12]

CastSpellExtraArgs::CastSpellExtraArgs ( CastSpellExtraArgsInit &&  init)
inline

Definition at line 531 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 ( SpellEffectValue  val)
inline

Definition at line 550 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 548 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ AddSpellMod() [2/2]

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

Definition at line 549 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 546 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetCastItem()

CastSpellExtraArgs & CastSpellExtraArgs::SetCastItem ( Item item)
inline

Definition at line 542 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetCustomArg()

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

Definition at line 551 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetOriginalCaster()

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

Definition at line 545 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetOriginalCastId()

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

Definition at line 547 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 552 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetScriptWaitsForSpellHit()

CastSpellExtraArgs & CastSpellExtraArgs::SetScriptWaitsForSpellHit ( bool  scriptWaitsForSpellHit)
inline

Definition at line 553 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetTriggerFlags()

CastSpellExtraArgs & CastSpellExtraArgs::SetTriggerFlags ( TriggerCastFlags  flag)
inline

Definition at line 541 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetTriggeringAura()

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

Definition at line 544 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetTriggeringSpell()

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

Definition at line 9707 of file Spell.cpp.

+ Here is the caller graph for this function:

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