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

#include <GuildPackets.h>

Public Member Functions

 GuildAddRank (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 Name
 
int32 RankOrder = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Guild::GuildAddRank::GuildAddRank ( WorldPacket &&  packet)
inline
446 : ClientPacket(CMSG_GUILD_ADD_RANK, std::move(packet)) { }
Definition: Opcodes.h:304
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

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

Implements WorldPackets::Packet.

384 {
385  _worldPacket.WriteBits(Name.length(), 7);
387 
390 }
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
int32 RankOrder
Definition: GuildPackets.h:451
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
std::string Name
Definition: GuildPackets.h:450
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

Member Data Documentation

std::string WorldPackets::Guild::GuildAddRank::Name
int32 WorldPackets::Guild::GuildAddRank::RankOrder = 0

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