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

#include <QuestPackets.h>

Public Member Functions

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

uint32 Reason = 0
 
bool SendErrorMessage = false
 
std::string ReasonText
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Implements WorldPackets::Packet.

522 {
524 
526  _worldPacket.WriteBits(ReasonText.length(), 9);
527 
529 
531 
532  return &_worldPacket;
533 }
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
bool SendErrorMessage
Definition: QuestPackets.h:536
std::string ReasonText
Definition: QuestPackets.h:537
uint32 Reason
Definition: QuestPackets.h:535
uint32_t uint32
Definition: g3dmath.h:168
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

Member Data Documentation

uint32 WorldPackets::Quest::QuestGiverInvalidQuest::Reason = 0
std::string WorldPackets::Quest::QuestGiverInvalidQuest::ReasonText
bool WorldPackets::Quest::QuestGiverInvalidQuest::SendErrorMessage = false

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