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

#include <QuestPackets.h>

Public Member Functions

 QuestGiverQuestDetails ()
 
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
 
ObjectGuid InformUnit
 
int32 QuestID = 0
 
int32 QuestPackageID = 0
 
uint32 QuestFlags [2] = {}
 
int32 SuggestedPartyMembers = 0
 
QuestRewards Rewards
 
std::vector< QuestObjectiveSimpleObjectives
 
std::vector< QuestDescEmoteDescEmotes
 
std::vector< int32LearnSpells
 
int32 PortraitTurnIn = 0
 
int32 PortraitGiver = 0
 
std::string PortraitGiverText
 
std::string PortraitGiverName
 
std::string PortraitTurnInText
 
std::string PortraitTurnInName
 
std::string QuestTitle
 
std::string LogDescription
 
std::string DescriptionText
 
bool DisplayPopup = false
 
bool StartCheat = false
 
bool AutoLaunched = false
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Implements WorldPackets::Packet.

335 {
342  _worldPacket << uint32(QuestFlags[0]); // Flags
343  _worldPacket << uint32(QuestFlags[1]); // FlagsEx
345  _worldPacket << int32(LearnSpells.size());
346  _worldPacket << Rewards; // WorldPackets::Quest::QuestRewards
347  _worldPacket << int32(DescEmotes.size());
348  _worldPacket << int32(Objectives.size());
349 
350  for (int32 spell : LearnSpells)
351  _worldPacket << int32(spell);
352 
354  {
355  _worldPacket << int32(emote.Type);
356  _worldPacket << uint32(emote.Delay);
357  }
358 
360  {
361  _worldPacket << int32(obj.ID);
362  _worldPacket << int32(obj.ObjectID);
363  _worldPacket << int32(obj.Amount);
364  _worldPacket << uint8(obj.Type);
365  }
366 
367  _worldPacket.WriteBits(QuestTitle.size(), 9);
378 
386 
387  return &_worldPacket;
388 }
bool AutoLaunched
Definition: QuestPackets.h:353
std::string QuestTitle
Definition: QuestPackets.h:348
ObjectGuid QuestGiverGUID
Definition: QuestPackets.h:332
int32 SuggestedPartyMembers
Definition: QuestPackets.h:337
std::vector< int32 > LearnSpells
Definition: QuestPackets.h:341
int32 QuestPackageID
Definition: QuestPackets.h:335
std::vector< QuestObjectiveSimple > Objectives
Definition: QuestPackets.h:339
void FlushBits()
Definition: ByteBuffer.h:150
std::string PortraitTurnInName
Definition: QuestPackets.h:347
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
std::string PortraitTurnInText
Definition: QuestPackets.h:346
std::string LogDescription
Definition: QuestPackets.h:349
std::string PortraitGiverText
Definition: QuestPackets.h:344
Definition: QuestPackets.h:237
ObjectGuid InformUnit
Definition: QuestPackets.h:333
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
std::string PortraitGiverName
Definition: QuestPackets.h:345
int32 PortraitTurnIn
Definition: QuestPackets.h:342
bool DisplayPopup
Definition: QuestPackets.h:351
int32_t int32
Definition: Define.h:146
std::string DescriptionText
Definition: QuestPackets.h:350
uint8_t uint8
Definition: g3dmath.h:164
int32 PortraitGiver
Definition: QuestPackets.h:343
bool StartCheat
Definition: QuestPackets.h:352
int32_t int32
Definition: g3dmath.h:167
int32 QuestID
Definition: QuestPackets.h:334
std::vector< QuestDescEmote > DescEmotes
Definition: QuestPackets.h:340
uint32_t uint32
Definition: g3dmath.h:168
QuestRewards Rewards
Definition: QuestPackets.h:338
Definition: QuestPackets.h:317
QuestFlags
Definition: QuestDef.h:139
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the caller graph for this function:

Member Data Documentation

bool WorldPackets::Quest::QuestGiverQuestDetails::AutoLaunched = false
std::vector<QuestDescEmote> WorldPackets::Quest::QuestGiverQuestDetails::DescEmotes
std::string WorldPackets::Quest::QuestGiverQuestDetails::DescriptionText
bool WorldPackets::Quest::QuestGiverQuestDetails::DisplayPopup = false
ObjectGuid WorldPackets::Quest::QuestGiverQuestDetails::InformUnit
std::vector<int32> WorldPackets::Quest::QuestGiverQuestDetails::LearnSpells
std::string WorldPackets::Quest::QuestGiverQuestDetails::LogDescription
std::vector<QuestObjectiveSimple> WorldPackets::Quest::QuestGiverQuestDetails::Objectives
int32 WorldPackets::Quest::QuestGiverQuestDetails::PortraitGiver = 0
std::string WorldPackets::Quest::QuestGiverQuestDetails::PortraitGiverName
std::string WorldPackets::Quest::QuestGiverQuestDetails::PortraitGiverText
int32 WorldPackets::Quest::QuestGiverQuestDetails::PortraitTurnIn = 0
std::string WorldPackets::Quest::QuestGiverQuestDetails::PortraitTurnInName
std::string WorldPackets::Quest::QuestGiverQuestDetails::PortraitTurnInText
uint32 WorldPackets::Quest::QuestGiverQuestDetails::QuestFlags[2] = {}
ObjectGuid WorldPackets::Quest::QuestGiverQuestDetails::QuestGiverGUID
int32 WorldPackets::Quest::QuestGiverQuestDetails::QuestID = 0
int32 WorldPackets::Quest::QuestGiverQuestDetails::QuestPackageID = 0
std::string WorldPackets::Quest::QuestGiverQuestDetails::QuestTitle
QuestRewards WorldPackets::Quest::QuestGiverQuestDetails::Rewards
bool WorldPackets::Quest::QuestGiverQuestDetails::StartCheat = false
int32 WorldPackets::Quest::QuestGiverQuestDetails::SuggestedPartyMembers = 0

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