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

#include "Packet.h"

Inheritance diagram for WorldPackets::ClientPacket:
WorldPackets::Packet WorldPackets::Bank::AutoBankItem WorldPackets::Bank::AutoStoreBankItem WorldPackets::Bank::BuyBankSlot WorldPackets::Character::LogoutCancel WorldPackets::Character::LogoutRequest WorldPackets::Character::PlayedTimeClient WorldPackets::Character::PlayerLogout WorldPackets::Character::ShowingCloak WorldPackets::Character::ShowingHelm WorldPackets::Chat::EmoteClient WorldPackets::Combat::SetSheathed WorldPackets::Guild::AcceptGuildInvite WorldPackets::Guild::GuildAddRank WorldPackets::Guild::GuildBankActivate WorldPackets::Guild::GuildBankBuyTab WorldPackets::Guild::GuildBankDepositMoney WorldPackets::Guild::GuildBankLogQuery WorldPackets::Guild::GuildBankQueryTab WorldPackets::Guild::GuildBankRemainingWithdrawMoneyQuery WorldPackets::Guild::GuildBankSetTabText WorldPackets::Guild::GuildBankSwapItems WorldPackets::Guild::GuildBankTextQuery WorldPackets::Guild::GuildBankUpdateTab WorldPackets::Guild::GuildBankWithdrawMoney WorldPackets::Guild::GuildCreate WorldPackets::Guild::GuildDeclineInvitation WorldPackets::Guild::GuildDelete WorldPackets::Guild::GuildDeleteRank WorldPackets::Guild::GuildDemoteMember WorldPackets::Guild::GuildEventLogQuery WorldPackets::Guild::GuildGetInfo WorldPackets::Guild::GuildGetRoster WorldPackets::Guild::GuildInviteByName WorldPackets::Guild::GuildLeave WorldPackets::Guild::GuildOfficerRemoveMember WorldPackets::Guild::GuildPermissionsQuery WorldPackets::Guild::GuildPromoteMember WorldPackets::Guild::GuildSetGuildMaster WorldPackets::Guild::GuildSetMemberNote WorldPackets::Guild::GuildSetRankPermissions WorldPackets::Guild::GuildUpdateInfoText WorldPackets::Guild::GuildUpdateMotdText WorldPackets::Guild::QueryGuildInfo WorldPackets::Guild::SaveGuildEmblem WorldPackets::LFG::LFGJoin WorldPackets::LFG::LFGLeave WorldPackets::Misc::RandomRollClient WorldPackets::Pet::DismissCritter WorldPackets::Pet::PetAbandon WorldPackets::Pet::PetSpellAutocast WorldPackets::Pet::PetStopAttack WorldPackets::Pet::RequestPetInfo WorldPackets::Totem::TotemDestroyed

Public Member Functions

 ClientPacket (WorldPacket &&packet)
 
 ClientPacket (OpcodeClient expectedOpcode, WorldPacket &&packet)
 
WorldPacket const * Write () final
 
OpcodeClient 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

◆ ClientPacket() [1/2]

WorldPackets::ClientPacket::ClientPacket ( WorldPacket &&  packet)
40 : Packet(std::move(packet))
41{
42}
Packet(WorldPacket &&worldPacket)
Definition: Packet.cpp:21

◆ ClientPacket() [2/2]

WorldPackets::ClientPacket::ClientPacket ( OpcodeClient  expectedOpcode,
WorldPacket &&  packet 
)
34 : Packet(std::move(packet))
35{
36 ASSERT(GetOpcode() == expectedOpcode);
37}
#define ASSERT
Definition: Errors.h:68
OpcodeClient GetOpcode() const
Definition: Packet.h:67

References ASSERT, and GetOpcode().

Member Function Documentation

◆ GetOpcode()

OpcodeClient WorldPackets::ClientPacket::GetOpcode ( ) const
inline
Opcodes OpcodeClient
Definition: Opcodes.h:1350
WorldPacket _worldPacket
Definition: Packet.h:42
uint16 GetOpcode() const
Definition: WorldPacket.h:76

Referenced by ClientPacket().

◆ Write()

WorldPacket const * WorldPackets::ClientPacket::Write ( )
finalvirtual

Implements WorldPackets::Packet.

45{
46 ASSERT(!"Write not allowed for client packets.");
47 // Shut up some compilers
48 return nullptr;
49}

References ASSERT.