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

#include <CharacterPackets.h>

Classes

struct  ReorderInfo
 

Public Member Functions

 ReorderCharacters (WorldPacket &&packet)
 
void Read () override
 
- Public Member Functions inherited from WorldPackets::ClientPacket
 ClientPacket (WorldPacket &&packet)
 
 ClientPacket (OpcodeClient expectedOpcode, WorldPacket &&packet)
 
WorldPacket constWrite () overridefinal
 
OpcodeClient 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

Array< ReorderInfoEntries
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Character::ReorderCharacters::ReorderCharacters ( WorldPacket &&  packet)
326  : ClientPacket(CMSG_REORDER_CHARACTERS, std::move(packet)),
328 {
329 
330 }
Array< ReorderInfo > Entries
Definition: CharacterPackets.h:360
#define sWorld
Definition: World.h:887
Definition: Opcodes.h:554
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62
Definition: World.h:231

Member Function Documentation

void WorldPackets::Character::ReorderCharacters::Read ( )
overridevirtual

Implements WorldPackets::Packet.

333 {
334  Entries.resize(_worldPacket.ReadBits(9));
335  for (ReorderInfo& reorderInfo : Entries)
336  {
337  _worldPacket >> reorderInfo.PlayerGUID;
338  _worldPacket >> reorderInfo.NewPosition;
339  }
340 }
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
Entries
Definition: boss_slabhide.cpp:48
WorldPacket _worldPacket
Definition: Packet.h:43

Member Data Documentation

Array<ReorderInfo> WorldPackets::Character::ReorderCharacters::Entries

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