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

#include <ChatPackets.h>

Public Member Functions

 DefenseMessage ()
 
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 ZoneID = 0
 
std::string MessageText
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Chat::DefenseMessage::DefenseMessage ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:946

Member Function Documentation

WorldPacket const * WorldPackets::Chat::DefenseMessage::Write ( )
overridevirtual

Implements WorldPackets::Packet.

260 {
262  _worldPacket.WriteBits(MessageText.length(), 12);
265 
266  return &_worldPacket;
267 }
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
int32_t int32
Definition: g3dmath.h:167
std::string MessageText
Definition: ChatPackets.h:290
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198
int32 ZoneID
Definition: ChatPackets.h:289

Member Data Documentation

std::string WorldPackets::Chat::DefenseMessage::MessageText
int32 WorldPackets::Chat::DefenseMessage::ZoneID = 0

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