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

#include <GarrisonPackets.h>

Public Member Functions

 GarrisonRequestBlueprintAndSpecializationDataResult ()
 
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::unordered_set< uint32 >
const
SpecializationsKnown = nullptr
 
std::unordered_set< uint32 >
const
BlueprintsKnown = nullptr
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Garrison::GarrisonRequestBlueprintAndSpecializationDataResult::GarrisonRequestBlueprintAndSpecializationDataResult ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49

Member Function Documentation

WorldPacket const * WorldPackets::Garrison::GarrisonRequestBlueprintAndSpecializationDataResult::Write ( )
overridevirtual

Implements WorldPackets::Packet.

228 {
231  if (BlueprintsKnown)
232  for (uint32 blueprint : *BlueprintsKnown)
233  _worldPacket << uint32(blueprint);
234 
236  for (uint32 specialization : *SpecializationsKnown)
237  _worldPacket << uint32(specialization);
238 
239  return &_worldPacket;
240 }
std::unordered_set< uint32 > const * BlueprintsKnown
Definition: GarrisonPackets.h:242
WorldPacket _worldPacket
Definition: Packet.h:43
std::unordered_set< uint32 > const * SpecializationsKnown
Definition: GarrisonPackets.h:241
uint32_t uint32
Definition: Define.h:150
uint32_t uint32
Definition: g3dmath.h:168

+ Here is the caller graph for this function:

Member Data Documentation

std::unordered_set<uint32> const* WorldPackets::Garrison::GarrisonRequestBlueprintAndSpecializationDataResult::BlueprintsKnown = nullptr
std::unordered_set<uint32> const* WorldPackets::Garrison::GarrisonRequestBlueprintAndSpecializationDataResult::SpecializationsKnown = nullptr

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