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

#include <MovementPackets.h>

Public Member Functions

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

int32 MapID = 0
 
uint32 Reason = 0
 
Position Pos
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Movement::NewWorld::NewWorld ( )
inline
209 : ServerPacket(SMSG_NEW_WORLD, 24) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1307

Member Function Documentation

WorldPacket const * WorldPackets::Movement::NewWorld::Write ( )
overridevirtual

Implements WorldPackets::Packet.

506 {
507  _worldPacket << MapID;
508  _worldPacket << Pos.PositionXYZOStream();
509  _worldPacket << Reason;
510  return &_worldPacket;
511 }
WorldPacket _worldPacket
Definition: Packet.h:43
int32 MapID
Definition: MovementPackets.h:213
uint32 Reason
Definition: MovementPackets.h:214
Pos
Definition: boss_gothik.cpp:115

Member Data Documentation

int32 WorldPackets::Movement::NewWorld::MapID = 0
Position WorldPackets::Movement::NewWorld::Pos
uint32 WorldPackets::Movement::NewWorld::Reason = 0

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