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

#include <VoidStoragePackets.h>

Public Member Functions

 VoidStorageTransfer (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< ObjectGuid,
VOID_STORAGE_MAX_WITHDRAW
Withdrawals
 
Array< ObjectGuid,
VOID_STORAGE_MAX_DEPOSIT
Deposits
 
ObjectGuid Npc
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::VoidStorage::VoidStorageTransfer::VoidStorageTransfer ( WorldPacket &&  packet)
inline
89 : ClientPacket(CMSG_VOID_STORAGE_TRANSFER, std::move(packet)) { }
Definition: Opcodes.h:716
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::VoidStorage::VoidStorageTransfer::Read ( )
overridevirtual

Implements WorldPackets::Packet.

66 {
67  _worldPacket >> Npc;
70 
71  for (ObjectGuid& deposit : Deposits)
72  _worldPacket >> deposit;
73 
74  for (ObjectGuid& withdrawal : Withdrawals)
75  _worldPacket >> withdrawal;
76 }
Array< ObjectGuid, VOID_STORAGE_MAX_DEPOSIT > Deposits
Definition: VoidStoragePackets.h:94
WorldPacket _worldPacket
Definition: Packet.h:43
uint32_t uint32
Definition: Define.h:150
void resize(size_type newSize)
Definition: PacketUtilities.h:95
Definition: ObjectGuid.h:189
Array< ObjectGuid, VOID_STORAGE_MAX_WITHDRAW > Withdrawals
Definition: VoidStoragePackets.h:93
T read()
Definition: ByteBuffer.h:484
ObjectGuid Npc
Definition: VoidStoragePackets.h:95

Member Data Documentation

Array<ObjectGuid, VOID_STORAGE_MAX_DEPOSIT> WorldPackets::VoidStorage::VoidStorageTransfer::Deposits
ObjectGuid WorldPackets::VoidStorage::VoidStorageTransfer::Npc
Array<ObjectGuid, VOID_STORAGE_MAX_WITHDRAW> WorldPackets::VoidStorage::VoidStorageTransfer::Withdrawals

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