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

#include <SocialPackets.h>

Public Member Functions

 AddFriend (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

std::string Notes
std::string Name

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket

Constructor & Destructor Documentation

WorldPackets::Social::AddFriend::AddFriend ( WorldPacket &&  packet)
98 : ClientPacket(CMSG_ADD_FRIEND, std::move(packet)) { }
Definition: Opcodes.h:55
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::Social::AddFriend::Read ( )

Implements WorldPackets::Packet.

111 {
112  uint32 nameLength = _worldPacket.ReadBits(9);
113  uint32 noteslength = _worldPacket.ReadBits(10);
114  Name = _worldPacket.ReadString(nameLength);
115  Notes = _worldPacket.ReadString(noteslength);
116 }
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
std::string Notes
Definition: SocialPackets.h:102
WorldPacket _worldPacket
Definition: Packet.h:43
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524
uint32_t uint32
Definition: Define.h:150
std::string Name
Definition: SocialPackets.h:103

Member Data Documentation

std::string WorldPackets::Social::AddFriend::Name
std::string WorldPackets::Social::AddFriend::Notes

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