TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldPackets::Guild::GuildUpdateMotdText Class Referencefinal

#include <GuildPackets.h>

Public Member Functions

 GuildUpdateMotdText (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 MotdText
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Guild::GuildUpdateMotdText::GuildUpdateMotdText ( WorldPacket &&  packet)
inline
151 : ClientPacket(CMSG_GUILD_UPDATE_MOTD_TEXT, std::move(packet)) { }
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62
Definition: Opcodes.h:347

Member Function Documentation

void WorldPackets::Guild::GuildUpdateMotdText::Read ( )
overridevirtual

Implements WorldPackets::Packet.

97 {
98  uint32 textLen = _worldPacket.ReadBits(10);
99  MotdText = _worldPacket.ReadString(textLen);
100 }
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
WorldPacket _worldPacket
Definition: Packet.h:43
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524
uint32_t uint32
Definition: Define.h:150
std::string MotdText
Definition: GuildPackets.h:155

Member Data Documentation

std::string WorldPackets::Guild::GuildUpdateMotdText::MotdText

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