AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ItemPosCount Struct Reference

#include "Player.h"

Public Member Functions

 ItemPosCount (uint16 _pos, uint32 _count)
 
bool isContainedIn (std::vector< ItemPosCount > const &vec) const
 

Public Attributes

uint16 pos
 
uint32 count
 

Detailed Description

Constructor & Destructor Documentation

◆ ItemPosCount()

ItemPosCount::ItemPosCount ( uint16  _pos,
uint32  _count 
)
inline
767: pos(_pos), count(_count) {}
uint32 count
Definition: Player.h:770
uint16 pos
Definition: Player.h:769

Member Function Documentation

◆ isContainedIn()

bool ItemPosCount::isContainedIn ( std::vector< ItemPosCount > const &  vec) const
13065{
13066 for (ItemPosCountVec::const_iterator itr = vec.begin(); itr != vec.end(); ++itr)
13067 if (itr->pos == pos)
13068 return true;
13069 return false;
13070}

References pos.

Referenced by Guild::BankMoveItemData::_ReserveSpace(), Player::CanStoreItem_InBag(), Player::CanStoreItem_InInventorySlots(), and Player::CanStoreItem_InSpecificSlot().

Member Data Documentation

◆ count

uint32 ItemPosCount::count

◆ pos

uint16 ItemPosCount::pos