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

#include <TicketPackets.h>

Classes

struct  GMTicketCase
 

Public Member Functions

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

std::vector< GMTicketCaseCases
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Ticket::GMTicketCaseStatus::GMTicketCaseStatus ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1053

Member Function Documentation

WorldPacket const * WorldPackets::Ticket::GMTicketCaseStatus::Write ( )
overridevirtual

Implements WorldPackets::Packet.

42 {
43  _worldPacket << int32(Cases.size());
44 
45  for (auto const& c : Cases)
46  {
47  _worldPacket << int32(c.CaseID);
48  _worldPacket << int32(c.CaseOpened);
49  _worldPacket << int32(c.CaseStatus);
50  _worldPacket << int16(c.CfgRealmID);
51  _worldPacket << int64(c.CharacterID);
52  _worldPacket << int32(c.WaitTimeOverrideMinutes);
53 
54  _worldPacket.WriteBits(c.Url.size(), 11);
55  _worldPacket.WriteBits(c.WaitTimeOverrideMessage.size(), 10);
56 
58  _worldPacket.WriteString(c.WaitTimeOverrideMessage);
59  }
60 
62  return &_worldPacket;
63 }
int16_t int16
Definition: g3dmath.h:165
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
int64_t int64
Definition: g3dmath.h:169
int32_t int32
Definition: g3dmath.h:167
std::vector< GMTicketCase > Cases
Definition: TicketPackets.h:81
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the caller graph for this function:

Member Data Documentation

std::vector<GMTicketCase> WorldPackets::Ticket::GMTicketCaseStatus::Cases

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