AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
WorldPackets::ServerPacket Class Reference

#include "Packet.h"

Inheritance diagram for WorldPackets::ServerPacket:
WorldPackets::Packet WorldPackets::Bank::BuyBankSlotResult WorldPackets::Bank::ShowBank WorldPackets::Character::LogoutCancelAck WorldPackets::Character::LogoutComplete WorldPackets::Character::LogoutResponse WorldPackets::Character::PlayedTime WorldPackets::Chat::ChatServerMessage WorldPackets::Chat::Emote WorldPackets::CombatLog::EnvironmentalDamageLog WorldPackets::Guild::GuildBankLogQueryResults WorldPackets::Guild::GuildBankQueryResults WorldPackets::Guild::GuildBankRemainingWithdrawMoney WorldPackets::Guild::GuildBankTextQueryResult WorldPackets::Guild::GuildCommandResult WorldPackets::Guild::GuildEvent WorldPackets::Guild::GuildEventLogQueryResults WorldPackets::Guild::GuildInfoResponse WorldPackets::Guild::GuildInvite WorldPackets::Guild::GuildPermissionsQueryResults WorldPackets::Guild::GuildRoster WorldPackets::Guild::PlayerSaveGuildEmblem WorldPackets::Guild::QueryGuildInfoResponse WorldPackets::Misc::CrossedInebriationThreshold WorldPackets::Misc::DurabilityDamageDeath WorldPackets::Misc::LevelUpInfo WorldPackets::Misc::PauseMirrorTimer WorldPackets::Misc::PlayMusic WorldPackets::Misc::PlayObjectSound WorldPackets::Misc::Playsound WorldPackets::Misc::RandomRoll WorldPackets::Misc::StartMirrorTimer WorldPackets::Misc::StopMirrorTimer WorldPackets::Misc::UITime WorldPackets::Misc::Weather WorldPackets::Pet::PetLearnedSpell WorldPackets::Pet::PetUnlearnedSpell WorldPackets::Totem::TotemCreated WorldPackets::WorldState::InitWorldStates WorldPackets::WorldState::UpdateWorldState

Public Member Functions

 ServerPacket (OpcodeServer opcode, std::size_t initialSize=200)
 
void Read () 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
 
virtual WorldPacket const * Write ()=0
 
virtual void Read ()=0
 
WorldPacket const * GetRawPacket () const
 
std::size_t GetSize () const
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Constructor & Destructor Documentation

◆ ServerPacket()

WorldPackets::ServerPacket::ServerPacket ( OpcodeServer  opcode,
std::size_t  initialSize = 200 
)
25 : Packet(WorldPacket(opcode, initialSize))
26{
27}
Packet(WorldPacket &&worldPacket)
Definition: Packet.cpp:21
Definition: WorldPacket.h:27

Member Function Documentation

◆ Clear()

void WorldPackets::ServerPacket::Clear ( )
inline
WorldPacket _worldPacket
Definition: Packet.h:42
void clear()
Definition: ByteBuffer.h:122

◆ GetOpcode()

OpcodeServer WorldPackets::ServerPacket::GetOpcode ( ) const
inline
Opcodes OpcodeServer
Definition: Opcodes.h:1351
uint16 GetOpcode() const
Definition: WorldPacket.h:76

◆ Move()

WorldPacket && WorldPackets::ServerPacket::Move ( )
inline
53{ return std::move(_worldPacket); }

◆ Read()

void WorldPackets::ServerPacket::Read ( )
finalvirtual

Implements WorldPackets::Packet.

30{
31 ASSERT(!"Read not implemented for server packets.");
32}
#define ASSERT
Definition: Errors.h:68

References ASSERT.

◆ ShrinkToFit()

void WorldPackets::ServerPacket::ShrinkToFit ( )
inline
void shrink_to_fit()
Definition: ByteBuffer.h:462