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

#include <QueryPackets.h>

Public Member Functions

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

std::vector< QuestPOIDataQuestPOIDataStats
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Implements WorldPackets::Packet.

375 {
378 
379  for (QuestPOIData const& questPOIData : QuestPOIDataStats)
380  {
381  _worldPacket << int32(questPOIData.QuestID);
382 
383  _worldPacket << int32(questPOIData.QuestPOIBlobDataStats.size());
384 
385  for (QuestPOIBlobData const& questPOIBlobData : questPOIData.QuestPOIBlobDataStats)
386  {
387  _worldPacket << int32(questPOIBlobData.BlobIndex);
388  _worldPacket << int32(questPOIBlobData.ObjectiveIndex);
389  _worldPacket << int32(questPOIBlobData.QuestObjectiveID);
390  _worldPacket << int32(questPOIBlobData.QuestObjectID);
391  _worldPacket << int32(questPOIBlobData.MapID);
392  _worldPacket << int32(questPOIBlobData.WorldMapAreaID);
393  _worldPacket << int32(questPOIBlobData.Floor);
394  _worldPacket << int32(questPOIBlobData.Priority);
395  _worldPacket << int32(questPOIBlobData.Flags);
396  _worldPacket << int32(questPOIBlobData.WorldEffectID);
397  _worldPacket << int32(questPOIBlobData.PlayerConditionID);
398  _worldPacket << int32(questPOIBlobData.UnkWoD1);
399  _worldPacket << int32(questPOIBlobData.QuestPOIBlobPointStats.size());
400 
401  for (QuestPOIBlobPoint const& questPOIBlobPoint : questPOIBlobData.QuestPOIBlobPointStats)
402  {
403  _worldPacket << int32(questPOIBlobPoint.X);
404  _worldPacket << int32(questPOIBlobPoint.Y);
405  }
406  }
407  }
408 
409  return &_worldPacket;
410 }
std::vector< QuestPOIData > QuestPOIDataStats
Definition: QueryPackets.h:368
WorldPacket _worldPacket
Definition: Packet.h:43
int32_t int32
Definition: g3dmath.h:167

+ Here is the caller graph for this function:

Member Data Documentation

std::vector<QuestPOIData> WorldPackets::Query::QuestPOIQueryResponse::QuestPOIDataStats

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