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
13148{
13149 for (ItemPosCountVec::const_iterator itr = vec.begin(); itr != vec.end(); ++itr)
13150 if (itr->pos == pos)
13151 return true;
13152 return false;
13153}

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