TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldPackets::Spells::CastFailed Class Referencefinal

#include <SpellPackets.h>

Public Member Functions

 CastFailed (OpcodeServer opcode)
 
WorldPacket constWrite () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
 
void Read () overridefinal
 
void Clear ()
 
WorldPacket && Move ()
 
OpcodeServer GetOpcode () const
 
- Public Member Functions inherited from WorldPackets::Packet
 Packet (WorldPacket &&worldPacket)
 
virtual ~Packet ()=default
 
 Packet (Packet const &right)=delete
 
Packetoperator= (Packet const &right)=delete
 
WorldPacket constGetRawPacket () const
 
size_t GetSize () const
 
ConnectionType GetConnection () const
 

Public Attributes

int32 Reason = 0
 
int32 FailedArg1 = -1
 
int32 FailedArg2 = -1
 
int32 SpellID = 0
 
uint8 CastID = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Spells::CastFailed::CastFailed ( OpcodeServer  opcode)
inline
425 : ServerPacket(opcode, 4+4+4+4+1) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49

Member Function Documentation

WorldPacket const * WorldPackets::Spells::CastFailed::Write ( )
overridevirtual

Implements WorldPackets::Packet.

453 {
459 
460  return &_worldPacket;
461 }
uint8 CastID
Definition: SpellPackets.h:433
int32 FailedArg2
Definition: SpellPackets.h:431
WorldPacket _worldPacket
Definition: Packet.h:43
int32 SpellID
Definition: SpellPackets.h:432
int32 FailedArg1
Definition: SpellPackets.h:430
uint8_t uint8
Definition: g3dmath.h:164
int32_t int32
Definition: g3dmath.h:167
int32 Reason
Definition: SpellPackets.h:429

+ Here is the caller graph for this function:

Member Data Documentation

uint8 WorldPackets::Spells::CastFailed::CastID = 0
int32 WorldPackets::Spells::CastFailed::FailedArg1 = -1
int32 WorldPackets::Spells::CastFailed::FailedArg2 = -1
int32 WorldPackets::Spells::CastFailed::Reason = 0
int32 WorldPackets::Spells::CastFailed::SpellID = 0

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