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

#include <SpellPackets.h>

Public Member Functions

 DispelFailed ()
 
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

ObjectGuid CasterGUID
 
ObjectGuid VictimGUID
 
uint32 SpellID = 0
 
std::vector< int32FailedSpells
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Spells::DispelFailed::DispelFailed ( )
inline
885 : ServerPacket(SMSG_DISPEL_FAILED, 16 + 16 + 4 + 4 + 4 /* predict a single failure on average */) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:954

Member Function Documentation

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

Implements WorldPackets::Packet.

849 {
853  _worldPacket << uint32(FailedSpells.size());
854  if (!FailedSpells.empty())
856 
857  return &_worldPacket;
858 }
ObjectGuid CasterGUID
Definition: SpellPackets.h:889
std::vector< int32 > FailedSpells
Definition: SpellPackets.h:892
ObjectGuid VictimGUID
Definition: SpellPackets.h:890
WorldPacket _worldPacket
Definition: Packet.h:43
uint32 SpellID
Definition: SpellPackets.h:891
void append(T value)
Definition: ByteBuffer.h:143
uint32_t uint32
Definition: g3dmath.h:168

+ Here is the caller graph for this function:

Member Data Documentation

ObjectGuid WorldPackets::Spells::DispelFailed::CasterGUID
std::vector<int32> WorldPackets::Spells::DispelFailed::FailedSpells
uint32 WorldPackets::Spells::DispelFailed::SpellID = 0
ObjectGuid WorldPackets::Spells::DispelFailed::VictimGUID

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