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

#include <TicketPackets.h>

Public Member Functions

 BugReport (WorldPacket &&packet)
 
void Read () override
 
- Public Member Functions inherited from WorldPackets::ClientPacket
 ClientPacket (WorldPacket &&packet)
 
 ClientPacket (OpcodeClient expectedOpcode, WorldPacket &&packet)
 
WorldPacket constWrite () overridefinal
 
OpcodeClient 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 Type = 0
 
std::string Text
 
std::string DiagInfo
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Ticket::BugReport::BugReport ( WorldPacket &&  packet)
inline
240 : ClientPacket(CMSG_BUG_REPORT, std::move(packet)) { }
Definition: Opcodes.h:118
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::Ticket::BugReport::Read ( )
overridevirtual

Implements WorldPackets::Packet.

279 {
281  uint32 diagLen = _worldPacket.ReadBits(12);
282  uint32 textLen = _worldPacket.ReadBits(10);
283  DiagInfo = _worldPacket.ReadString(diagLen);
284  Text = _worldPacket.ReadString(textLen);
285 }
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
WorldPacket _worldPacket
Definition: Packet.h:43
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524
uint32_t uint32
Definition: Define.h:150
Text
Definition: boss_ascendant_lord_obsidius.cpp:22
std::string DiagInfo
Definition: TicketPackets.h:246
Type
Type of JSON value.
Definition: rapidjson.h:642
bool ReadBit()
Definition: ByteBuffer.h:186

+ Here is the call graph for this function:

Member Data Documentation

std::string WorldPackets::Ticket::BugReport::DiagInfo
std::string WorldPackets::Ticket::BugReport::Text
uint32 WorldPackets::Ticket::BugReport::Type = 0

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