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

#include <SpellPackets.h>

Public Member Functions

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

uint64 ActionButtons [MAX_ACTION_BUTTONS]
 
uint8 Reason = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Spells::UpdateActionButtons::UpdateActionButtons ( )
inline
129  {
130  std::memset(ActionButtons, 0, sizeof(ActionButtons));
131  }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1595
uint64 ActionButtons[MAX_ACTION_BUTTONS]
Definition: SpellPackets.h:135
#define MAX_ACTION_BUTTONS
Definition: Player.h:359

Member Function Documentation

WorldPacket const * WorldPackets::Spells::UpdateActionButtons::Write ( )
overridevirtual

Implements WorldPackets::Packet.

67 {
68  for (uint32 i = 0; i < MAX_ACTION_BUTTONS; ++i)
70 
72 
73  return &_worldPacket;
74 }
uint8 Reason
Definition: SpellPackets.h:136
WorldPacket _worldPacket
Definition: Packet.h:43
uint64 ActionButtons[MAX_ACTION_BUTTONS]
Definition: SpellPackets.h:135
uint32_t uint32
Definition: Define.h:150
#define MAX_ACTION_BUTTONS
Definition: Player.h:359

Member Data Documentation

uint64 WorldPackets::Spells::UpdateActionButtons::ActionButtons[MAX_ACTION_BUTTONS]
uint8 WorldPackets::Spells::UpdateActionButtons::Reason = 0

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