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, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
 
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
 
Packet & operator= (Packet const &right)=delete
 
WorldPacket const * GetRawPacket () const
 
size_t GetSize () const
 
ConnectionType GetConnection () const
 

Public Attributes

uint32 TextID = 0
 
bool Allow = false
 
std::array< float, MAX_NPC_TEXT_OPTIONS > Probabilities = { }
 
std::array< uint32, MAX_NPC_TEXT_OPTIONS > BroadcastTextID = { }
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Definition at line 209 of file QueryPackets.h.

Constructor & Destructor Documentation

◆ QueryNPCTextResponse()

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

Definition at line 212 of file QueryPackets.h.

Member Function Documentation

◆ Write()

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

Member Data Documentation

◆ Allow

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

Definition at line 217 of file QueryPackets.h.

Referenced by WorldSession::HandleNpcTextQueryOpcode(), and Write().

◆ BroadcastTextID

std::array<uint32, MAX_NPC_TEXT_OPTIONS> WorldPackets::Query::QueryNPCTextResponse::BroadcastTextID = { }

Definition at line 219 of file QueryPackets.h.

Referenced by WorldSession::HandleNpcTextQueryOpcode(), and Write().

◆ Probabilities

std::array<float, MAX_NPC_TEXT_OPTIONS> WorldPackets::Query::QueryNPCTextResponse::Probabilities = { }

Definition at line 218 of file QueryPackets.h.

Referenced by WorldSession::HandleNpcTextQueryOpcode(), and Write().

◆ TextID

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

Definition at line 216 of file QueryPackets.h.

Referenced by WorldSession::HandleNpcTextQueryOpcode(), and Write().


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