TrinityCore
AuctionsBucketKey Struct Reference

#include <AuctionHouseMgr.h>

Public Member Functions

 AuctionsBucketKey ()=default
 
 AuctionsBucketKey (uint32 itemId, uint16 itemLevel, uint16 battlePetSpeciesId, uint16 suffixItemNameDescriptionId)
 
 AuctionsBucketKey (WorldPackets::AuctionHouse::AuctionBucketKey const &key)
 
bool operator== (AuctionsBucketKey const &right) const =default
 

Static Public Member Functions

static std::size_t Hash (AuctionsBucketKey const &key)
 
static AuctionsBucketKey ForItem (Item const *item)
 
static AuctionsBucketKey ForCommodity (ItemTemplate const *itemTemplate)
 

Public Attributes

uint32 ItemId
 
uint16 ItemLevel
 
uint16 BattlePetSpeciesId
 
uint16 SuffixItemNameDescriptionId
 

Friends

std::strong_ordering operator<=> (AuctionsBucketKey const &left, AuctionsBucketKey const &right)=default
 

Detailed Description

Definition at line 156 of file AuctionHouseMgr.h.

Constructor & Destructor Documentation

◆ AuctionsBucketKey() [1/3]

AuctionsBucketKey::AuctionsBucketKey ( )
default

◆ AuctionsBucketKey() [2/3]

AuctionsBucketKey::AuctionsBucketKey ( uint32  itemId,
uint16  itemLevel,
uint16  battlePetSpeciesId,
uint16  suffixItemNameDescriptionId 
)
inline

Definition at line 159 of file AuctionHouseMgr.h.

◆ AuctionsBucketKey() [3/3]

AuctionsBucketKey::AuctionsBucketKey ( WorldPackets::AuctionHouse::AuctionBucketKey const &  key)

Definition at line 51 of file AuctionHouseMgr.cpp.

Member Function Documentation

◆ ForCommodity()

AuctionsBucketKey AuctionsBucketKey::ForCommodity ( ItemTemplate const *  itemTemplate)
static

Definition at line 84 of file AuctionHouseMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ForItem()

AuctionsBucketKey AuctionsBucketKey::ForItem ( Item const *  item)
static

Definition at line 67 of file AuctionHouseMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Hash()

std::size_t AuctionsBucketKey::Hash ( AuctionsBucketKey const &  key)
static

Definition at line 57 of file AuctionHouseMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator==()

bool AuctionsBucketKey::operator== ( AuctionsBucketKey const &  right) const
default

Friends And Related Function Documentation

◆ operator<=>

std::strong_ordering operator<=> ( AuctionsBucketKey const &  left,
AuctionsBucketKey const &  right 
)
friend

Member Data Documentation

◆ BattlePetSpeciesId

uint16 AuctionsBucketKey::BattlePetSpeciesId

Definition at line 165 of file AuctionHouseMgr.h.

◆ ItemId

uint32 AuctionsBucketKey::ItemId

Definition at line 163 of file AuctionHouseMgr.h.

◆ ItemLevel

uint16 AuctionsBucketKey::ItemLevel

Definition at line 164 of file AuctionHouseMgr.h.

◆ SuffixItemNameDescriptionId

uint16 AuctionsBucketKey::SuffixItemNameDescriptionId

Definition at line 166 of file AuctionHouseMgr.h.


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