All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldPackets::Who::WhoRequestPkt Class Referencefinal

#include <WhoPackets.h>

Public Member Functions

 WhoRequestPkt (WorldPacket &&packet)
void Read () override
- Public Member Functions inherited from WorldPackets::ClientPacket
 ClientPacket (WorldPacket &&packet)
 ClientPacket (OpcodeClient expectedOpcode, WorldPacket &&packet)
WorldPacket constWrite () overridefinal
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
WorldPacket constGetRawPacket () const
size_t GetSize () const
ConnectionType GetConnection () const

Public Attributes

WhoRequest Request
std::vector< int32Areas

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket

Constructor & Destructor Documentation

WorldPackets::Who::WhoRequestPkt::WhoRequestPkt ( WorldPacket &&  packet)
81 : ClientPacket(CMSG_WHO, std::move(packet)) { }
Definition: Opcodes.h:718
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::Who::WhoRequestPkt::Read ( )

Implements WorldPackets::Packet.

87 {
88  Areas.resize(_worldPacket.ReadBits(4));
92  for (size_t i = 0; i < Areas.size(); ++i)
93  _worldPacket >> Areas[i];
94 }
Definition: Player.h:441
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
WorldPacket _worldPacket
Definition: Packet.h:43
WhoRequest Request
Definition: WhoPackets.h:85

Member Data Documentation

std::vector<int32> WorldPackets::Who::WhoRequestPkt::Areas
WhoRequest WorldPackets::Who::WhoRequestPkt::Request

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