TrinityCore
Loading...
Searching...
No Matches
WorldPackets::Query::QueryNPCTextResponse Class Referencefinal

#include <QueryPackets.h>

+ Inheritance diagram for WorldPackets::Query::QueryNPCTextResponse:

Public Member Functions

 QueryNPCTextResponse ()
 
WorldPacket const * Write () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, size_t initialSize=200)
 
void Read () override 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
 
Packet & operator= (Packet const &right)=delete
 
WorldPacket const * GetRawPacket () const
 
size_t GetSize () const
 

Public Attributes

uint32 TextID = 0
 
bool Allow = false
 
std::array< NPCText, MAX_GOSSIP_TEXT_OPTIONS > Options
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Definition at line 158 of file QueryPackets.h.

Constructor & Destructor Documentation

◆ QueryNPCTextResponse()

WorldPackets::Query::QueryNPCTextResponse::QueryNPCTextResponse ( )
inlineexplicit

Definition at line 161 of file QueryPackets.h.

Member Function Documentation

◆ Write()

WorldPacket const * WorldPackets::Query::QueryNPCTextResponse::Write ( )
overridevirtual

Implements WorldPackets::Packet.

Definition at line 114 of file QueryPackets.cpp.

References MAX_GOSSIP_TEXT_EMOTES.

Referenced by WorldSession::HandleNpcTextQueryOpcode().

Member Data Documentation

◆ Allow

bool WorldPackets::Query::QueryNPCTextResponse::Allow = false

Definition at line 166 of file QueryPackets.h.

Referenced by WorldSession::HandleNpcTextQueryOpcode().

◆ Options

std::array<NPCText, MAX_GOSSIP_TEXT_OPTIONS> WorldPackets::Query::QueryNPCTextResponse::Options

Definition at line 167 of file QueryPackets.h.

Referenced by WorldSession::HandleNpcTextQueryOpcode().

◆ TextID

uint32 WorldPackets::Query::QueryNPCTextResponse::TextID = 0

Definition at line 165 of file QueryPackets.h.

Referenced by WorldSession::HandleNpcTextQueryOpcode().


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