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

#include <QuestPackets.h>

Public Member Functions

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

int32 PortraitTurnIn = 0
 
int32 PortraitGiver = 0
 
std::string QuestTitle
 
std::string RewardText
 
std::string PortraitGiverText
 
std::string PortraitGiverName
 
std::string PortraitTurnInText
 
std::string PortraitTurnInName
 
QuestGiverOfferReward QuestData
 
int32 QuestPackageID = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Implements WorldPackets::Packet.

279 {
280  _worldPacket << QuestData; // WorldPackets::Quest::QuestGiverOfferReward
284 
285  _worldPacket.WriteBits(QuestTitle.size(), 9);
286  _worldPacket.WriteBits(RewardText.size(), 12);
292 
299 
300  return &_worldPacket;
301 };
std::string PortraitGiverName
Definition: QuestPackets.h:268
QuestGiverOfferReward QuestData
Definition: QuestPackets.h:271
std::string QuestTitle
Definition: QuestPackets.h:265
void FlushBits()
Definition: ByteBuffer.h:150
std::string PortraitTurnInText
Definition: QuestPackets.h:269
WorldPacket _worldPacket
Definition: Packet.h:43
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
std::string PortraitGiverText
Definition: QuestPackets.h:267
std::string RewardText
Definition: QuestPackets.h:266
int32 QuestPackageID
Definition: QuestPackets.h:272
int32 PortraitGiver
Definition: QuestPackets.h:264
int32_t int32
Definition: g3dmath.h:167
std::string PortraitTurnInName
Definition: QuestPackets.h:270
int32 PortraitTurnIn
Definition: QuestPackets.h:263
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the caller graph for this function:

Member Data Documentation

int32 WorldPackets::Quest::QuestGiverOfferRewardMessage::PortraitGiver = 0
std::string WorldPackets::Quest::QuestGiverOfferRewardMessage::PortraitGiverName
std::string WorldPackets::Quest::QuestGiverOfferRewardMessage::PortraitGiverText
int32 WorldPackets::Quest::QuestGiverOfferRewardMessage::PortraitTurnIn = 0
std::string WorldPackets::Quest::QuestGiverOfferRewardMessage::PortraitTurnInName
std::string WorldPackets::Quest::QuestGiverOfferRewardMessage::PortraitTurnInText
QuestGiverOfferReward WorldPackets::Quest::QuestGiverOfferRewardMessage::QuestData
int32 WorldPackets::Quest::QuestGiverOfferRewardMessage::QuestPackageID = 0
std::string WorldPackets::Quest::QuestGiverOfferRewardMessage::QuestTitle
std::string WorldPackets::Quest::QuestGiverOfferRewardMessage::RewardText

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