AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
WorldPackets::Packet Class Referenceabstract

#include "Packet.h"

Inheritance diagram for WorldPackets::Packet:
WorldPackets::ClientPacket WorldPackets::ServerPacket 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 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

 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
 

Protected Attributes

WorldPacket _worldPacket
 

Detailed Description

Constructor & Destructor Documentation

◆ Packet() [1/2]

WorldPackets::Packet::Packet ( WorldPacket &&  worldPacket)
21 : _worldPacket(std::move(worldPacket))
22{
23}
WorldPacket _worldPacket
Definition: Packet.h:42

◆ ~Packet()

virtual WorldPackets::Packet::~Packet ( )
virtualdefault

◆ Packet() [2/2]

WorldPackets::Packet::Packet ( Packet const &  right)
delete

Member Function Documentation

◆ GetRawPacket()

WorldPacket const * WorldPackets::Packet::GetRawPacket ( ) const
inline
38{ return &_worldPacket; }

Referenced by Guild::_SendBankList(), and Map::SetZoneMusic().

◆ GetSize()

std::size_t WorldPackets::Packet::GetSize ( ) const
inline
39{ return _worldPacket.size(); }
std::size_t size() const
Definition: ByteBuffer.h:444

◆ operator=()

Packet & WorldPackets::Packet::operator= ( Packet const &  right)
delete

◆ Read()

virtual void WorldPackets::Packet::Read ( )
pure virtual

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

◆ Write()

virtual WorldPacket const * WorldPackets::Packet::Write ( )
pure virtual

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

Member Data Documentation

◆ _worldPacket