AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
WorldPackets::LFG::LFGJoin Class Referencefinal

#include "LFGPackets.h"

Inheritance diagram for WorldPackets::LFG::LFGJoin:
WorldPackets::ClientPacket WorldPackets::Packet

Public Member Functions

 LFGJoin (WorldPacket &&packet)
 
void Read () override
 
- Public Member Functions inherited from WorldPackets::ClientPacket
 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
 
WorldPacket const * GetRawPacket () const
 
std::size_t GetSize () const
 

Public Attributes

uint32 Roles = 0
 
Array< uint32, 50 > Slots
 
std::string Comment
 
bool NoPartialClear = false
 
bool Achievements = false
 
std::array< uint8, 3 > Needs = { }
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Constructor & Destructor Documentation

◆ LFGJoin()

WorldPackets::LFG::LFGJoin::LFGJoin ( WorldPacket &&  packet)
inline
29: ClientPacket(CMSG_LFG_JOIN, std::move(packet)) { }
ClientPacket(WorldPacket &&packet)
Definition Packet.cpp:39
@ CMSG_LFG_JOIN
Definition Opcodes.h:890

Member Function Documentation

◆ Read()

void WorldPackets::LFG::LFGJoin::Read ( )
overridevirtual

Implements WorldPackets::Packet.

21{
26 for (uint32& slot : Slots)
27 _worldPacket >> slot;
28
29 _worldPacket.read_skip<uint8>(); // Needs count, hardcoded to 3 in client
30 for (uint8& needs : Needs)
31 _worldPacket >> needs;
32
34}
std::uint8_t uint8
Definition Define.h:109
std::uint32_t uint32
Definition Define.h:107
void read_skip()
Definition ByteBuffer.h:339
T read()
Definition ByteBuffer.h:351
void resize(size_type newSize)
Definition PacketUtilities.h:146
std::array< uint8, 3 > Needs
Definition LFGPackets.h:38
std::string Comment
Definition LFGPackets.h:35
bool Achievements
Definition LFGPackets.h:37
uint32 Roles
Definition LFGPackets.h:33
Array< uint32, 50 > Slots
Definition LFGPackets.h:34
bool NoPartialClear
Definition LFGPackets.h:36
WorldPacket _worldPacket
Definition Packet.h:42

References WorldPackets::Packet::_worldPacket, Achievements, Comment, Needs, NoPartialClear, ByteBuffer::read(), ByteBuffer::read_skip(), WorldPackets::Array< T, N >::resize(), Roles, and Slots.

Member Data Documentation

◆ Achievements

bool WorldPackets::LFG::LFGJoin::Achievements = false

Referenced by Read().

◆ Comment

std::string WorldPackets::LFG::LFGJoin::Comment

◆ Needs

std::array<uint8, 3> WorldPackets::LFG::LFGJoin::Needs = { }
38{ };

Referenced by Read().

◆ NoPartialClear

bool WorldPackets::LFG::LFGJoin::NoPartialClear = false

Referenced by Read().

◆ Roles

uint32 WorldPackets::LFG::LFGJoin::Roles = 0

◆ Slots

Array<uint32, 50> WorldPackets::LFG::LFGJoin::Slots

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