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

#include <AuctionHousePackets.h>

Classes

struct  AuctionItemForSale
 

Public Member Functions

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

uint64 BuyoutPrice = 0
 
ObjectGuid Auctioneer
 
uint64 MinBid = 0
 
uint32 RunTime = 0
 
std::vector< AuctionItemForSaleItems
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::AuctionHouse::AuctionSellItem::AuctionSellItem ( WorldPacket &&  packet)
inline
136 : ClientPacket(CMSG_AUCTION_SELL_ITEM, std::move(packet)) { }
Definition: Opcodes.h:72
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::AuctionHouse::AuctionSellItem::Read ( )
overridevirtual

Implements WorldPackets::Packet.

138 {
140  _worldPacket >> MinBid;
143 
144  uint8 ItemsCount = _worldPacket.ReadBits(5);
146 
147  for (uint8 i = 0; i < ItemsCount; i++)
148  {
150  _worldPacket >> item.Guid;
151  _worldPacket >> item.UseCount;
152  Items.emplace_back(item);
153  }
154 }
ObjectGuid Auctioneer
Definition: AuctionHousePackets.h:141
uint32 UseCount
Definition: AuctionHousePackets.h:133
std::vector< AuctionItemForSale > Items
Definition: AuctionHousePackets.h:144
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
ObjectGuid Guid
Definition: AuctionHousePackets.h:132
uint64 MinBid
Definition: AuctionHousePackets.h:142
uint32 RunTime
Definition: AuctionHousePackets.h:143
uint8_t uint8
Definition: Define.h:152
uint64 BuyoutPrice
Definition: AuctionHousePackets.h:140

Member Data Documentation

ObjectGuid WorldPackets::AuctionHouse::AuctionSellItem::Auctioneer
uint64 WorldPackets::AuctionHouse::AuctionSellItem::BuyoutPrice = 0
std::vector<AuctionItemForSale> WorldPackets::AuctionHouse::AuctionSellItem::Items
uint64 WorldPackets::AuctionHouse::AuctionSellItem::MinBid = 0
uint32 WorldPackets::AuctionHouse::AuctionSellItem::RunTime = 0

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