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

#include <CalendarPackets.h>

Public Member Functions

 CalendarCommandResult ()
 
 CalendarCommandResult (uint8 command, uint8 result, std::string const &name)
 
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

uint8 Command = 0
 
uint8 Result = 0
 
std::string Name
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Calendar::CalendarCommandResult::CalendarCommandResult ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:845
WorldPackets::Calendar::CalendarCommandResult::CalendarCommandResult ( uint8  command,
uint8  result,
std::string const name 
)
inline
467 : ServerPacket(SMSG_CALENDAR_COMMAND_RESULT, 3), Command(command), Result(result), Name(name) { }
uint8 Command
Definition: CalendarPackets.h:471
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
std::string Name
Definition: CalendarPackets.h:473
Definition: Opcodes.h:845
uint8 Result
Definition: CalendarPackets.h:472

Member Function Documentation

WorldPacket const * WorldPackets::Calendar::CalendarCommandResult::Write ( )
overridevirtual

Implements WorldPackets::Packet.

402 {
405 
406  _worldPacket.WriteBits(Name.size(), 9);
409 
410  return &_worldPacket;
411 }
uint8 Command
Definition: CalendarPackets.h:471
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
std::string Name
Definition: CalendarPackets.h:473
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
uint8_t uint8
Definition: g3dmath.h:164
uint8 Result
Definition: CalendarPackets.h:472
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the caller graph for this function:

Member Data Documentation

uint8 WorldPackets::Calendar::CalendarCommandResult::Command = 0
std::string WorldPackets::Calendar::CalendarCommandResult::Name
uint8 WorldPackets::Calendar::CalendarCommandResult::Result = 0

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