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
766: pos(_pos), count(_count) {}
uint32 count
Definition: Player.h:769
uint16 pos
Definition: Player.h:768

Member Function Documentation

◆ isContainedIn()

bool ItemPosCount::isContainedIn ( std::vector< ItemPosCount > const &  vec) const
13159{
13160 for (ItemPosCountVec::const_iterator itr = vec.begin(); itr != vec.end(); ++itr)
13161 if (itr->pos == pos)
13162 return true;
13163 return false;
13164}

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