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

#include <ChannelPackets.h>


struct  ChannelPlayer

Public Member Functions

 ChannelListResponse ()
WorldPacket constWrite () override
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
void Read () overridefinal
void Clear ()
WorldPacket && Move ()
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
WorldPacket constGetRawPacket () const
size_t GetSize () const
ConnectionType GetConnection () const

Public Attributes

std::vector< ChannelPlayer_Members
std::string _Channel
 Channel Name. More...
uint32 _ChannelFlags = 0
bool _Display = false

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket

Constructor & Destructor Documentation

WorldPackets::Channel::ChannelListResponse::ChannelListResponse ( )
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:883

Member Function Documentation

WorldPacket const * WorldPackets::Channel::ChannelListResponse::Write ( )

Implements WorldPackets::Packet.

21 {
23  _worldPacket.WriteBits(_Channel.length(), 7);
25  _worldPacket << uint32(_Members.size());
28  for (ChannelPlayer const& player : _Members)
29  {
30  _worldPacket << player.Guid;
31  _worldPacket << uint32(player.VirtualRealmAddress);
32  _worldPacket << uint8(player.Flags);
33  }
35  return &_worldPacket;
36 }
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
uint32 _ChannelFlags
Definition: ChannelPackets.h:48
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
bool _Display
Definition: ChannelPackets.h:49
uint8_t uint8
Definition: g3dmath.h:164
std::vector< ChannelPlayer > _Members
Definition: ChannelPackets.h:46
uint32_t uint32
Definition: g3dmath.h:168
std::string _Channel
Channel Name.
Definition: ChannelPackets.h:47
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the call graph for this function:

Member Data Documentation

std::string WorldPackets::Channel::ChannelListResponse::_Channel

Channel Name.

uint32 WorldPackets::Channel::ChannelListResponse::_ChannelFlags = 0
See also
enum ChannelFlags
bool WorldPackets::Channel::ChannelListResponse::_Display = false
std::vector<ChannelPlayer> WorldPackets::Channel::ChannelListResponse::_Members

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