TrinityCore
CastSpellExtraArgs Struct Reference

#include <SpellDefines.h>

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 (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)
 
CastSpellExtraArgsAddSpellBP0 (int32 val)
 
CastSpellExtraArgsSetCustomArg (std::any customArg)
 

Public Attributes

TriggerCastFlags TriggerFlags = TRIGGERED_NONE
 
ItemCastItem = nullptr
 
Spell const * TriggeringSpell = nullptr
 
AuraEffect const * TriggeringAura = nullptr
 
ObjectGuid OriginalCaster = ObjectGuid::Empty
 
Difficulty CastDifficulty = Difficulty(0)
 
ObjectGuid OriginalCastId = ObjectGuid::Empty
 
Optional< int32OriginalCastItemLevel
 
struct {
   std::vector< std::pair< SpellValueMod, int32 > >   data
 
   struct   CastSpellExtraArgs
 
   class   WorldObject
 
SpellValueOverrides
 
std::any CustomArg
 

Detailed Description

Definition at line 448 of file SpellDefines.h.

Constructor & Destructor Documentation

◆ CastSpellExtraArgs() [1/10]

CastSpellExtraArgs::CastSpellExtraArgs ( )

◆ CastSpellExtraArgs() [2/10]

CastSpellExtraArgs::CastSpellExtraArgs ( bool  triggered)
inline

Definition at line 451 of file SpellDefines.h.

◆ CastSpellExtraArgs() [3/10]

CastSpellExtraArgs::CastSpellExtraArgs ( TriggerCastFlags  trigger)
inline

Definition at line 452 of file SpellDefines.h.

◆ CastSpellExtraArgs() [4/10]

CastSpellExtraArgs::CastSpellExtraArgs ( Item item)
inline

Definition at line 453 of file SpellDefines.h.

◆ CastSpellExtraArgs() [5/10]

CastSpellExtraArgs::CastSpellExtraArgs ( Spell const *  triggeringSpell)
inline

Definition at line 454 of file SpellDefines.h.

◆ CastSpellExtraArgs() [6/10]

CastSpellExtraArgs::CastSpellExtraArgs ( AuraEffect const *  eff)
inline

Definition at line 455 of file SpellDefines.h.

◆ CastSpellExtraArgs() [7/10]

CastSpellExtraArgs::CastSpellExtraArgs ( Difficulty  castDifficulty)
inline

Definition at line 456 of file SpellDefines.h.

◆ CastSpellExtraArgs() [8/10]

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

Definition at line 457 of file SpellDefines.h.

◆ CastSpellExtraArgs() [9/10]

CastSpellExtraArgs::CastSpellExtraArgs ( CastSpellExtraArgs const &  other)
default

◆ CastSpellExtraArgs() [10/10]

CastSpellExtraArgs::CastSpellExtraArgs ( CastSpellExtraArgs &&  other)
defaultnoexcept

◆ ~CastSpellExtraArgs()

CastSpellExtraArgs::~CastSpellExtraArgs ( )
default

Member Function Documentation

◆ AddSpellBP0()

CastSpellExtraArgs & CastSpellExtraArgs::AddSpellBP0 ( int32  val)
inline

Definition at line 475 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ AddSpellMod()

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

Definition at line 474 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ 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 472 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetCastItem()

CastSpellExtraArgs & CastSpellExtraArgs::SetCastItem ( Item item)
inline

Definition at line 468 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetCustomArg()

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

Definition at line 476 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetOriginalCaster()

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

Definition at line 471 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetOriginalCastId()

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

Definition at line 473 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetTriggerFlags()

CastSpellExtraArgs & CastSpellExtraArgs::SetTriggerFlags ( TriggerCastFlags  flag)
inline

Definition at line 467 of file SpellDefines.h.

+ Here is the caller graph for this function:

◆ SetTriggeringAura()

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

Definition at line 9414 of file Spell.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetTriggeringSpell()

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

Definition at line 9403 of file Spell.cpp.

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ CastSpellExtraArgs

CastSpellExtraArgs::CastSpellExtraArgs
friend

Definition at line 488 of file SpellDefines.h.

◆ WorldObject

friend class WorldObject
friend

Definition at line 489 of file SpellDefines.h.

Member Data Documentation

◆ CastDifficulty

Difficulty CastSpellExtraArgs::CastDifficulty = Difficulty(0)

Definition at line 483 of file SpellDefines.h.

◆ CastItem

Item* CastSpellExtraArgs::CastItem = nullptr

Definition at line 479 of file SpellDefines.h.

◆ CustomArg

std::any CastSpellExtraArgs::CustomArg

Definition at line 499 of file SpellDefines.h.

◆ data

std::vector<std::pair<SpellValueMod, int32> > CastSpellExtraArgs::data
private

Definition at line 497 of file SpellDefines.h.

◆ OriginalCaster

ObjectGuid CastSpellExtraArgs::OriginalCaster = ObjectGuid::Empty

Definition at line 482 of file SpellDefines.h.

◆ OriginalCastId

ObjectGuid CastSpellExtraArgs::OriginalCastId = ObjectGuid::Empty

Definition at line 484 of file SpellDefines.h.

◆ OriginalCastItemLevel

Optional<int32> CastSpellExtraArgs::OriginalCastItemLevel

Definition at line 485 of file SpellDefines.h.

◆ 

struct { ... } CastSpellExtraArgs::SpellValueOverrides

◆ TriggerFlags

TriggerCastFlags CastSpellExtraArgs::TriggerFlags = TRIGGERED_NONE

Definition at line 478 of file SpellDefines.h.

◆ TriggeringAura

AuraEffect const* CastSpellExtraArgs::TriggeringAura = nullptr

Definition at line 481 of file SpellDefines.h.

◆ TriggeringSpell

Spell const* CastSpellExtraArgs::TriggeringSpell = nullptr

Definition at line 480 of file SpellDefines.h.


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