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

#include <SpellPackets.h>

Public Member Functions

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

Optional< SpellCastLogDataLogData
 
SpellCastData Cast
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Spells::SpellGo::SpellGo ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1538

Member Function Documentation

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

Implements WorldPackets::Packet.

407 {
408  _worldPacket << Cast;
409 
410  _worldPacket.WriteBit(LogData.is_initialized());
412 
413  if (LogData)
414  _worldPacket << *LogData;
415 
416  return &_worldPacket;
417 }
void FlushBits()
Definition: ByteBuffer.h:150
Optional< SpellCastLogData > LogData
Definition: SpellPackets.h:370
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
SpellCastData Cast
Definition: SpellPackets.h:371

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

SpellCastData WorldPackets::Spells::SpellGo::Cast
Optional<SpellCastLogData> WorldPackets::Spells::SpellGo::LogData

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