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

#include <NPCPackets.h>

Public Member Functions

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

uint32 Flags = 0
 
G3D::Vector2 Pos
 
int32 Icon = 0
 
int32 Importance = 0
 
std::string Name
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::NPC::GossipPOI::GossipPOI ( )
inline
189 : ServerPacket(SMSG_GOSSIP_POI, 2 + 2 * 4 + 4 + 4 + 1) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1058

Member Function Documentation

WorldPacket const * WorldPackets::NPC::GossipPOI::Write ( )
overridevirtual

Implements WorldPackets::Packet.

155 {
157  _worldPacket.WriteBits(Name.length(), 6);
158  _worldPacket << Pos.x;
159  _worldPacket << Pos.y;
160  _worldPacket << Icon;
163 
164  return &_worldPacket;
165 }
std::string Name
Definition: NPCPackets.h:197
uint32 Flags
Definition: NPCPackets.h:193
WorldPacket _worldPacket
Definition: Packet.h:43
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
int32 Icon
Definition: NPCPackets.h:195
int32 Importance
Definition: NPCPackets.h:196
Pos
Definition: boss_gothik.cpp:115
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::NPC::GossipPOI::Flags = 0
int32 WorldPackets::NPC::GossipPOI::Icon = 0
int32 WorldPackets::NPC::GossipPOI::Importance = 0
std::string WorldPackets::NPC::GossipPOI::Name
G3D::Vector2 WorldPackets::NPC::GossipPOI::Pos

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