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

#include <MiscPackets.h>

Public Member Functions

 StandStateUpdate ()
 
 StandStateUpdate (UnitStandStateType state, uint32 animKitID)
 
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 AnimKitID = 0
 
UnitStandStateType State = UNIT_STAND_STATE_STAND
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Misc::StandStateUpdate::StandStateUpdate ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1550
WorldPackets::Misc::StandStateUpdate::StandStateUpdate ( UnitStandStateType  state,
uint32  animKitID 
)
inline
427 : ServerPacket(SMSG_STAND_STATE_UPDATE, 4 + 1), AnimKitID(animKitID), State(state) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
uint32 AnimKitID
Definition: MiscPackets.h:431
Definition: Opcodes.h:1550
UnitStandStateType State
Definition: MiscPackets.h:432

Member Function Documentation

WorldPacket const * WorldPackets::Misc::StandStateUpdate::Write ( )
overridevirtual

Implements WorldPackets::Packet.

287 {
290 
291  return &_worldPacket;
292 }
uint32 AnimKitID
Definition: MiscPackets.h:431
WorldPacket _worldPacket
Definition: Packet.h:43
UnitStandStateType State
Definition: MiscPackets.h:432
uint8_t uint8
Definition: g3dmath.h:164
uint32_t uint32
Definition: g3dmath.h:168

+ Here is the caller graph for this function:

Member Data Documentation

uint32 WorldPackets::Misc::StandStateUpdate::AnimKitID = 0
UnitStandStateType WorldPackets::Misc::StandStateUpdate::State = UNIT_STAND_STATE_STAND

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