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

#include <BattlegroundPackets.h>

Public Member Functions

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

uint32 Timeout = 0
 
uint32 Mapid = 0
 
BattlefieldStatusHeader Hdr
 
uint8 Role = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Battleground::BattlefieldStatusNeedConfirmation::BattlefieldStatusNeedConfirmation ( )
inline
160 : ServerPacket(SMSG_BATTLEFIELD_STATUS_NEED_CONFIRMATION, 4 + 4 + sizeof(BattlefieldStatusHeader) + 1) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49

Member Function Documentation

WorldPacket const * WorldPackets::Battleground::BattlefieldStatusNeedConfirmation::Write ( )
overridevirtual

Implements WorldPackets::Packet.

157 {
158  _worldPacket << Hdr;
161  _worldPacket << uint8(Role);
162  return &_worldPacket;
163 }
BattlefieldStatusHeader Hdr
Definition: BattlegroundPackets.h:166
WorldPacket _worldPacket
Definition: Packet.h:43
uint8 Role
Definition: BattlegroundPackets.h:167
uint8_t uint8
Definition: g3dmath.h:164
uint32 Mapid
Definition: BattlegroundPackets.h:165
uint32_t uint32
Definition: g3dmath.h:168
uint32 Timeout
Definition: BattlegroundPackets.h:164

+ Here is the caller graph for this function:

Member Data Documentation

BattlefieldStatusHeader WorldPackets::Battleground::BattlefieldStatusNeedConfirmation::Hdr
uint32 WorldPackets::Battleground::BattlefieldStatusNeedConfirmation::Mapid = 0
uint8 WorldPackets::Battleground::BattlefieldStatusNeedConfirmation::Role = 0
uint32 WorldPackets::Battleground::BattlefieldStatusNeedConfirmation::Timeout = 0

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