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

#include <QueryPackets.h>

Classes

struct  DBQueryRecord
 

Public Member Functions

 DBQueryBulk (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

uint32 TableHash = 0
 
std::vector< DBQueryRecordQueries
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Query::DBQueryBulk::DBQueryBulk ( WorldPacket &&  packet)
inline
184 : ClientPacket(CMSG_DB_QUERY_BULK, std::move(packet)) { }
Definition: Opcodes.h:233
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::Query::DBQueryBulk::Read ( )
overridevirtual

Implements WorldPackets::Packet.

246 {
248 
249  uint32 count = _worldPacket.ReadBits(13);
250 
251  Queries.resize(count);
252  for (uint32 i = 0; i < count; ++i)
253  {
254  _worldPacket >> Queries[i].GUID;
255  _worldPacket >> Queries[i].RecordID;
256  }
257 }
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
WorldPacket _worldPacket
Definition: Packet.h:43
uint32_t uint32
Definition: Define.h:150
uint32 TableHash
Definition: QueryPackets.h:188
std::vector< DBQueryRecord > Queries
Definition: QueryPackets.h:189

Member Data Documentation

std::vector<DBQueryRecord> WorldPackets::Query::DBQueryBulk::Queries
uint32 WorldPackets::Query::DBQueryBulk::TableHash = 0

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