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

#include <GuildPackets.h>

Public Member Functions

 GuildEventNewLeader ()
 
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

ObjectGuid NewLeaderGUID
 
std::string NewLeaderName
 
uint32 NewLeaderVirtualRealmAddress = 0
 
ObjectGuid OldLeaderGUID
 
std::string OldLeaderName
 
uint32 OldLeaderVirtualRealmAddress = 0
 
bool SelfPromoted = false
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Guild::GuildEventNewLeader::GuildEventNewLeader ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1082

Member Function Documentation

WorldPacket const * WorldPackets::Guild::GuildEventNewLeader::Write ( )
overridevirtual

Implements WorldPackets::Packet.

324 {
326  _worldPacket.WriteBits(NewLeaderName.length(), 6);
327  _worldPacket.WriteBits(OldLeaderName.length(), 6);
329 
334 
337 
338  return &_worldPacket;
339 }
uint32 OldLeaderVirtualRealmAddress
Definition: GuildPackets.h:356
uint32 NewLeaderVirtualRealmAddress
Definition: GuildPackets.h:353
void FlushBits()
Definition: ByteBuffer.h:150
std::string OldLeaderName
Definition: GuildPackets.h:355
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
std::string NewLeaderName
Definition: GuildPackets.h:352
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
ObjectGuid OldLeaderGUID
Definition: GuildPackets.h:354
ObjectGuid NewLeaderGUID
Definition: GuildPackets.h:351
bool SelfPromoted
Definition: GuildPackets.h:357
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

ObjectGuid WorldPackets::Guild::GuildEventNewLeader::NewLeaderGUID
std::string WorldPackets::Guild::GuildEventNewLeader::NewLeaderName
uint32 WorldPackets::Guild::GuildEventNewLeader::NewLeaderVirtualRealmAddress = 0
ObjectGuid WorldPackets::Guild::GuildEventNewLeader::OldLeaderGUID
std::string WorldPackets::Guild::GuildEventNewLeader::OldLeaderName
uint32 WorldPackets::Guild::GuildEventNewLeader::OldLeaderVirtualRealmAddress = 0
bool WorldPackets::Guild::GuildEventNewLeader::SelfPromoted = false

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