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

#include <AchievementPackets.h>

Public Member Functions

 ServerFirstAchievement ()
 
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 PlayerGUID
 
std::string Name
 
uint32 AchievementID = 0
 
bool GuildAchievement = false
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Achievement::ServerFirstAchievement::ServerFirstAchievement ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1488

Member Function Documentation

WorldPacket const * WorldPackets::Achievement::ServerFirstAchievement::Write ( )
overridevirtual

Implements WorldPackets::Packet.

111 {
112  _worldPacket.WriteBits(Name.length(), 7);
117 
118  return &_worldPacket;
119 }
ObjectGuid PlayerGUID
Definition: AchievementPackets.h:135
std::string Name
Definition: AchievementPackets.h:136
bool GuildAchievement
Definition: AchievementPackets.h:138
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
uint32 AchievementID
Definition: AchievementPackets.h:137
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

uint32 WorldPackets::Achievement::ServerFirstAchievement::AchievementID = 0
bool WorldPackets::Achievement::ServerFirstAchievement::GuildAchievement = false
std::string WorldPackets::Achievement::ServerFirstAchievement::Name
ObjectGuid WorldPackets::Achievement::ServerFirstAchievement::PlayerGUID

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