All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldPackets::AuctionHouse::AuctionListBidderItems Class Referencefinal

#include <AuctionHousePackets.h>

Public Member Functions

 AuctionListBidderItems (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 Offset = 0
std::vector< uint32AuctionItemIDs
ObjectGuid Auctioneer

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket

Constructor & Destructor Documentation

WorldPackets::AuctionHouse::AuctionListBidderItems::AuctionListBidderItems ( WorldPacket &&  packet)
162 : ClientPacket(CMSG_AUCTION_LIST_BIDDER_ITEMS, std::move(packet)) { }
Definition: Opcodes.h:65
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::AuctionHouse::AuctionListBidderItems::Read ( )

Implements WorldPackets::Packet.

164 {
166  _worldPacket >> Offset;
167  uint8 auctionItemIDsCount = _worldPacket.ReadBits(7);
170  for (uint8 i = 0; i < auctionItemIDsCount; i++)
171  {
172  uint32 AuctionItemID = 0;
173  _worldPacket >> AuctionItemID;
174  AuctionItemIDs.emplace_back(AuctionItemID);
175  }
176 }
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
ObjectGuid Auctioneer
Definition: AuctionHousePackets.h:168
void FlushBits()
Definition: ByteBuffer.h:150
uint32 Offset
Definition: AuctionHousePackets.h:166
std::vector< uint32 > AuctionItemIDs
Definition: AuctionHousePackets.h:167
WorldPacket _worldPacket
Definition: Packet.h:43
uint32_t uint32
Definition: Define.h:150
uint8_t uint8
Definition: Define.h:152

Member Data Documentation

ObjectGuid WorldPackets::AuctionHouse::AuctionListBidderItems::Auctioneer
std::vector<uint32> WorldPackets::AuctionHouse::AuctionListBidderItems::AuctionItemIDs
uint32 WorldPackets::AuctionHouse::AuctionListBidderItems::Offset = 0

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