TrinityCore
WorldPackets::Spells::SpellCooldown Class Reference

#include <SpellPackets.h>

Public Member Functions

 SpellCooldown ()
 
WorldPacket const * Write () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
 
void Read () override final
 
void Clear ()
 
WorldPacket && Move ()
 
void ShrinkToFit ()
 
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 const * GetRawPacket () const
 
size_t GetSize () const
 
ConnectionType GetConnection () const
 

Public Attributes

std::vector< SpellCooldownStructSpellCooldowns
 
ObjectGuid Caster
 
uint8 Flags = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

◆ SpellCooldown()

WorldPackets::Spells::SpellCooldown::SpellCooldown ( )
inline
606 : ServerPacket(SMSG_SPELL_COOLDOWN, 4 + 16 + 1) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.cpp:25
Definition: Opcodes.h:1846

Member Function Documentation

◆ Write()

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

Implements WorldPackets::Packet.

637 {
638  _worldPacket << Caster;
641  for (SpellCooldownStruct const& cooldown : SpellCooldowns)
642  _worldPacket << cooldown;
643 
644  return &_worldPacket;
645 }
std::vector< SpellCooldownStruct > SpellCooldowns
Definition: SpellPackets.h:610
ObjectGuid Caster
Definition: SpellPackets.h:611
WorldPacket _worldPacket
Definition: Packet.h:43
uint32_t uint32
Definition: Define.h:143
uint8_t uint8
Definition: Define.h:145
uint8 Flags
Definition: SpellPackets.h:612
+ Here is the caller graph for this function:

Member Data Documentation

◆ Caster

ObjectGuid WorldPackets::Spells::SpellCooldown::Caster

◆ Flags

uint8 WorldPackets::Spells::SpellCooldown::Flags = 0

◆ SpellCooldowns

std::vector<SpellCooldownStruct> WorldPackets::Spells::SpellCooldown::SpellCooldowns

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