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

#include <QuestPackets.h>

Public Member Functions

 QuestGiverRequestItems ()
 
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 QuestGiverGUID
 
int32 QuestGiverCreatureID = 0
 
int32 QuestID = 0
 
int32 CompEmoteDelay = 0
 
int32 CompEmoteType = 0
 
bool AutoLaunched = false
 
int32 SuggestPartyMembers = 0
 
int32 MoneyToGet = 0
 
std::vector
< QuestObjectiveCollect
Collect
 
std::vector< QuestCurrencyCurrency
 
int32 StatusFlags = 0
 
uint32 QuestFlags [2] = {}
 
std::string QuestTitle
 
std::string CompletionText
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Quest::QuestGiverRequestItems::QuestGiverRequestItems ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1413

Member Function Documentation

WorldPacket const * WorldPackets::Quest::QuestGiverRequestItems::Write ( )
overridevirtual

Implements WorldPackets::Packet.

391 {
401  _worldPacket << int32(Collect.size());
402  _worldPacket << int32(Currency.size());
404 
405  for (QuestObjectiveCollect const& obj : Collect)
406  {
407  _worldPacket << int32(obj.ObjectID);
408  _worldPacket << int32(obj.Amount);
409  }
410 
411  for (QuestCurrency const& cur : Currency)
412  {
413  _worldPacket << int32(cur.CurrencyID);
414  _worldPacket << int32(cur.Amount);
415  }
416 
419 
420  _worldPacket.WriteBits(QuestTitle.size(), 9);
423 
426 
427  return &_worldPacket;
428 }
std::string CompletionText
Definition: QuestPackets.h:390
int32 CompEmoteDelay
Definition: QuestPackets.h:380
int32 QuestGiverCreatureID
Definition: QuestPackets.h:378
bool AutoLaunched
Definition: QuestPackets.h:382
void FlushBits()
Definition: ByteBuffer.h:150
std::vector< QuestCurrency > Currency
Definition: QuestPackets.h:386
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
int32 SuggestPartyMembers
Definition: QuestPackets.h:383
int32 MoneyToGet
Definition: QuestPackets.h:384
int32 QuestID
Definition: QuestPackets.h:379
int32 CompEmoteType
Definition: QuestPackets.h:381
std::string QuestTitle
Definition: QuestPackets.h:389
int32_t int32
Definition: g3dmath.h:167
uint32_t uint32
Definition: g3dmath.h:168
int32 StatusFlags
Definition: QuestPackets.h:387
QuestFlags
Definition: QuestDef.h:139
std::vector< QuestObjectiveCollect > Collect
Definition: QuestPackets.h:385
ObjectGuid QuestGiverGUID
Definition: QuestPackets.h:377
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the caller graph for this function:

Member Data Documentation

bool WorldPackets::Quest::QuestGiverRequestItems::AutoLaunched = false
std::vector<QuestObjectiveCollect> WorldPackets::Quest::QuestGiverRequestItems::Collect
int32 WorldPackets::Quest::QuestGiverRequestItems::CompEmoteDelay = 0
int32 WorldPackets::Quest::QuestGiverRequestItems::CompEmoteType = 0
std::string WorldPackets::Quest::QuestGiverRequestItems::CompletionText
std::vector<QuestCurrency> WorldPackets::Quest::QuestGiverRequestItems::Currency
int32 WorldPackets::Quest::QuestGiverRequestItems::MoneyToGet = 0
uint32 WorldPackets::Quest::QuestGiverRequestItems::QuestFlags[2] = {}
int32 WorldPackets::Quest::QuestGiverRequestItems::QuestGiverCreatureID = 0
ObjectGuid WorldPackets::Quest::QuestGiverRequestItems::QuestGiverGUID
int32 WorldPackets::Quest::QuestGiverRequestItems::QuestID = 0
std::string WorldPackets::Quest::QuestGiverRequestItems::QuestTitle
int32 WorldPackets::Quest::QuestGiverRequestItems::StatusFlags = 0
int32 WorldPackets::Quest::QuestGiverRequestItems::SuggestPartyMembers = 0

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