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

#include <QueryPackets.h>

Public Member Functions

 QueryPlayerNameResponse ()
 
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 Player
 
uint8 Result = 0
 
PlayerGuidLookupData Data
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Query::QueryPlayerNameResponse::QueryPlayerNameResponse ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1401

Member Function Documentation

WorldPacket const * WorldPackets::Query::QueryPlayerNameResponse::Write ( )
overridevirtual

Implements WorldPackets::Packet.

183 {
184  _worldPacket << Result;
185  _worldPacket << Player;
186 
187  if (Result == RESPONSE_SUCCESS)
188  _worldPacket << Data;
189 
190  return &_worldPacket;
191 }
ObjectGuid Player
Definition: QueryPackets.h:116
PlayerGuidLookupData Data
Definition: QueryPackets.h:118
uint8 Result
Definition: QueryPackets.h:117
WorldPacket _worldPacket
Definition: Packet.h:43
Definition: SharedDefines.h:4424

+ Here is the caller graph for this function:

Member Data Documentation

PlayerGuidLookupData WorldPackets::Query::QueryPlayerNameResponse::Data
ObjectGuid WorldPackets::Query::QueryPlayerNameResponse::Player
uint8 WorldPackets::Query::QueryPlayerNameResponse::Result = 0

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