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

#include <TaxiPackets.h>

Public Member Functions

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

Optional< ShowTaxiNodesWindowInfoWindowInfo
 
TaxiMask constNodes = nullptr
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Taxi::ShowTaxiNodes::ShowTaxiNodes ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1522

Member Function Documentation

WorldPacket const * WorldPackets::Taxi::ShowTaxiNodes::Write ( )
overridevirtual

Implements WorldPackets::Packet.

35 {
36  _worldPacket.WriteBit(WindowInfo.is_initialized());
38 
39  _worldPacket << uint32(Nodes->size());
40 
41  if (WindowInfo.is_initialized())
42  {
43  _worldPacket << WindowInfo->UnitGUID;
44  _worldPacket << uint32(WindowInfo->CurrentNode);
45  }
46 
47  _worldPacket.append(Nodes->data(), Nodes->size());
48 
49  return &_worldPacket;
50 }
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
void append(T value)
Definition: ByteBuffer.h:143
Optional< ShowTaxiNodesWindowInfo > WindowInfo
Definition: TaxiPackets.h:63
uint32_t uint32
Definition: g3dmath.h:168
TaxiMask const * Nodes
Definition: TaxiPackets.h:64

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

TaxiMask const* WorldPackets::Taxi::ShowTaxiNodes::Nodes = nullptr
Optional<ShowTaxiNodesWindowInfo> WorldPackets::Taxi::ShowTaxiNodes::WindowInfo

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