AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
WorldPackets::Chat::ChatServerMessage Class Referencefinal

#include "ChatPackets.h"

Inheritance diagram for WorldPackets::Chat::ChatServerMessage:
WorldPackets::ServerPacket WorldPackets::Packet

Public Member Functions

 ChatServerMessage ()
 
WorldPacket const * Write () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, std::size_t initialSize=200)
 
void Read () final
 
void Clear ()
 
WorldPacket && Move ()
 
void ShrinkToFit ()
 
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
 
virtual WorldPacket const * Write ()=0
 
virtual void Read ()=0
 
WorldPacket const * GetRawPacket () const
 
std::size_t GetSize () const
 

Public Attributes

int32 MessageID = 0
 
std::string StringParam
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Constructor & Destructor Documentation

◆ ChatServerMessage()

WorldPackets::Chat::ChatServerMessage::ChatServerMessage ( )
inline
@ SMSG_CHAT_SERVER_MESSAGE
Definition: Opcodes.h:687
ServerPacket(OpcodeServer opcode, std::size_t initialSize=200)
Definition: Packet.cpp:25

Member Function Documentation

◆ Write()

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

Implements WorldPackets::Packet.

34{
37
38 return &_worldPacket;
39}
std::int32_t int32
Definition: Define.h:103
WorldPacket _worldPacket
Definition: Packet.h:42
std::string StringParam
Definition: ChatPackets.h:57
int32 MessageID
Definition: ChatPackets.h:56

Referenced by World::SendServerMessage().

Member Data Documentation

◆ MessageID

int32 WorldPackets::Chat::ChatServerMessage::MessageID = 0

◆ StringParam

std::string WorldPackets::Chat::ChatServerMessage::StringParam