TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
QuestPackets.h File Reference
#include "Packet.h"
#include "QuestDef.h"
#include "ObjectGuid.h"
#include "ItemPackets.h"
+ Include dependency graph for QuestPackets.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  WorldPackets::Quest::QuestGiverStatusQuery
 
class  WorldPackets::Quest::QuestGiverStatusMultipleQuery
 
struct  WorldPackets::Quest::QuestGiverInfo
 
class  WorldPackets::Quest::QuestGiverStatus
 
class  WorldPackets::Quest::QuestGiverStatusMultiple
 
class  WorldPackets::Quest::QuestGiverHello
 
class  WorldPackets::Quest::QueryQuestInfo
 
struct  WorldPackets::Quest::QuestInfoChoiceItem
 
struct  WorldPackets::Quest::QuestInfo
 
class  WorldPackets::Quest::QueryQuestInfoResponse
 
class  WorldPackets::Quest::QuestUpdateAddCredit
 
class  WorldPackets::Quest::QuestUpdateAddPvPCredit
 
struct  WorldPackets::Quest::QuestChoiceItem
 
struct  WorldPackets::Quest::QuestRewards
 
struct  WorldPackets::Quest::QuestDescEmote
 
struct  WorldPackets::Quest::QuestGiverOfferReward
 
class  WorldPackets::Quest::QuestGiverOfferRewardMessage
 
class  WorldPackets::Quest::QuestGiverChooseReward
 
class  WorldPackets::Quest::QuestGiverQuestComplete
 
class  WorldPackets::Quest::QuestGiverCompleteQuest
 
struct  WorldPackets::Quest::QuestObjectiveSimple
 
class  WorldPackets::Quest::QuestGiverQuestDetails
 
struct  WorldPackets::Quest::QuestObjectiveCollect
 
struct  WorldPackets::Quest::QuestCurrency
 
class  WorldPackets::Quest::QuestGiverRequestItems
 
class  WorldPackets::Quest::QuestGiverRequestReward
 
class  WorldPackets::Quest::QuestGiverQueryQuest
 
class  WorldPackets::Quest::QuestGiverAcceptQuest
 
class  WorldPackets::Quest::QuestLogRemoveQuest
 
struct  WorldPackets::Quest::GossipTextData
 
class  WorldPackets::Quest::QuestGiverQuestList
 
class  WorldPackets::Quest::QuestUpdateComplete
 
class  WorldPackets::Quest::QuestConfirmAcceptResponse
 
class  WorldPackets::Quest::QuestConfirmAccept
 
class  WorldPackets::Quest::QuestPushResultResponse
 
class  WorldPackets::Quest::QuestLogFull
 
class  WorldPackets::Quest::QuestPushResult
 
class  WorldPackets::Quest::QuestGiverInvalidQuest
 
class  WorldPackets::Quest::QuestUpdateFailedTimer
 
class  WorldPackets::Quest::QuestGiverQuestFailed
 
class  WorldPackets::Quest::PushQuestToParty
 
class  WorldPackets::Quest::DailyQuestsReset
 

Namespaces

 WorldPackets
 
 WorldPackets::Quest
 

Functions

ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Quest::QuestRewards const &questRewards)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Quest::QuestGiverOfferReward const &offer)
 

Function Documentation

ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Quest::QuestRewards const questRewards 
)
207 {
208  data << questRewards.ChoiceItemCount;
209 
210  for (uint32 i = 0; i < QUEST_REWARD_CHOICES_COUNT; ++i)
211  {
212  data << questRewards.ChoiceItems[i].ItemID;
213  data << questRewards.ChoiceItems[i].Quantity;
214  }
215 
216  data << questRewards.ItemCount;
217 
218  for (uint32 i = 0; i < QUEST_REWARD_ITEM_COUNT; ++i)
219  {
220  data << questRewards.ItemID[i];
221  data << questRewards.ItemQty[i];
222  }
223 
224  data << questRewards.Money;
225  data << questRewards.XP;
226  data << questRewards.Title;
227  data << questRewards.Talents;
228  data << questRewards.FactionFlags;
229 
230  for (uint32 i = 0; i < QUEST_REWARD_REPUTATIONS_COUNT; ++i)
231  {
232  data << questRewards.FactionID[i];
233  data << questRewards.FactionValue[i];
234  data << questRewards.FactionOverride[i];
235  }
236 
237  data << questRewards.SpellCompletionDisplayID;
238  data << questRewards.SpellCompletionID;
239 
240  for (uint32 i = 0; i < QUEST_REWARD_CURRENCY_COUNT; ++i)
241  {
242  data << questRewards.CurrencyID[i];
243  data << questRewards.CurrencyQty[i];
244  }
245 
246  data << questRewards.SkillLineID;
247  data << questRewards.NumSkillUps;
248 
249  data.WriteBit(false); // Unk
250  data.FlushBits();
251 
252  return data;
253 }
void FlushBits()
Definition: ByteBuffer.h:150
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
#define QUEST_REWARD_CURRENCY_COUNT
Definition: QuestDef.h:51
uint32_t uint32
Definition: Define.h:150
#define QUEST_REWARD_CHOICES_COUNT
Definition: QuestDef.h:46
#define QUEST_REWARD_ITEM_COUNT
Definition: QuestDef.h:47
#define QUEST_REWARD_REPUTATIONS_COUNT
Definition: QuestDef.h:49

+ Here is the call graph for this function:

256 {
257  data << offer.QuestGiverGUID;
258  data << int32(offer.QuestGiverCreatureID);
259  data << int32(offer.QuestID);
260  data << int32(offer.QuestFlags[0]); // Flags
261  data << int32(offer.QuestFlags[1]); // FlagsEx
262  data << int32(offer.SuggestedPartyMembers);
263  data << offer.Rewards; // WorldPackets::Quest::QuestRewards
264 
265  data << int32(offer.Emotes.size());
266  for (WorldPackets::Quest::QuestDescEmote const& emote : offer.Emotes)
267  {
268  data << int32(emote.Type);
269  data << uint32(emote.Delay);
270  }
271 
272  data.WriteBit(offer.AutoLaunched);
273  data.FlushBits();
274 
275  return data;
276 }
void FlushBits()
Definition: ByteBuffer.h:150
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
Definition: QuestPackets.h:237
int32_t int32
Definition: g3dmath.h:167
uint32_t uint32
Definition: g3dmath.h:168
uint32 Delay
Definition: QuestPackets.h:241
int32 Type
Definition: QuestPackets.h:240

+ Here is the call graph for this function: