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

#include <GuildPackets.h>

Public Member Functions

 GuildEventPlayerLeft ()
 
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 LeaverGUID
 
std::string LeaverName
 
uint32 LeaverVirtualRealmAddress = 0
 
ObjectGuid RemoverGUID
 
std::string RemoverName
 
uint32 RemoverVirtualRealmAddress = 0
 
bool Removed = false
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Implements WorldPackets::Packet.

264 {
266  _worldPacket.WriteBits(LeaverName.length(), 6);
268 
269  if (Removed)
270  {
271  _worldPacket.WriteBits(RemoverName.length(), 6);
273 
277  }
278 
282 
283  return &_worldPacket;
284 }
uint32 RemoverVirtualRealmAddress
Definition: GuildPackets.h:340
ObjectGuid LeaverGUID
Definition: GuildPackets.h:335
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
bool Removed
Definition: GuildPackets.h:341
uint32 LeaverVirtualRealmAddress
Definition: GuildPackets.h:337
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
std::string LeaverName
Definition: GuildPackets.h:336
std::string RemoverName
Definition: GuildPackets.h:339
ObjectGuid RemoverGUID
Definition: GuildPackets.h:338
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::GuildEventPlayerLeft::LeaverGUID
std::string WorldPackets::Guild::GuildEventPlayerLeft::LeaverName
uint32 WorldPackets::Guild::GuildEventPlayerLeft::LeaverVirtualRealmAddress = 0
bool WorldPackets::Guild::GuildEventPlayerLeft::Removed = false
ObjectGuid WorldPackets::Guild::GuildEventPlayerLeft::RemoverGUID
std::string WorldPackets::Guild::GuildEventPlayerLeft::RemoverName
uint32 WorldPackets::Guild::GuildEventPlayerLeft::RemoverVirtualRealmAddress = 0

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