AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
WorldPackets::WorldState::UpdateWorldState Class Referencefinal

#include "WorldStatePackets.h"

Inheritance diagram for WorldPackets::WorldState::UpdateWorldState:
WorldPackets::ServerPacket WorldPackets::Packet

Public Member Functions

 UpdateWorldState ()
 
WorldPacket const * Write () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, size_t initialSize=200)
 
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
 
Packetoperator= (Packet const &right)=delete
 
virtual WorldPacket const * Write ()=0
 
virtual void Read ()=0
 
WorldPacket const * GetRawPacket () const
 
size_t GetSize () const
 

Public Attributes

int32 VariableID = 0
 
int32 Value = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Constructor & Destructor Documentation

◆ UpdateWorldState()

WorldPackets::WorldState::UpdateWorldState::UpdateWorldState ( )
inline
@ SMSG_UPDATE_WORLD_STATE
Definition: Opcodes.h:737
ServerPacket(OpcodeServer opcode, size_t initialSize=200)
Definition: Packet.cpp:25

Member Function Documentation

◆ Write()

WorldPacket const * WorldPackets::WorldState::UpdateWorldState::Write ( )
overridevirtual

Implements WorldPackets::Packet.

41{
44
45 return &_worldPacket;
46}
std::int32_t int32
Definition: Define.h:104
WorldPacket _worldPacket
Definition: Packet.h:42
int32 Value
Definition: WorldStatePackets.h:57
int32 VariableID
Definition: WorldStatePackets.h:56

Referenced by Player::SendUpdateWorldState(), Battleground::UpdateWorldState(), and GameEventMgr::UpdateWorldStates().

Member Data Documentation

◆ Value

int32 WorldPackets::WorldState::UpdateWorldState::Value = 0

◆ VariableID

int32 WorldPackets::WorldState::UpdateWorldState::VariableID = 0