blah
This commit is contained in:
parent
156c243360
commit
d53379f6c2
@ -1143,7 +1143,7 @@ PlayerInventoryPtr Player::inventory() const {
|
|||||||
return m_inventory;
|
return m_inventory;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t Player::itemsCanHold(ItemPtr const& items) const {
|
uint64_t Player::itemsCanHold(ItemPtr const& items) const {
|
||||||
return m_inventory->itemsCanFit(items);
|
return m_inventory->itemsCanFit(items);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1211,7 +1211,7 @@ bool Player::hasItem(ItemDescriptor const& descriptor, bool exactMatch) const {
|
|||||||
return m_inventory->hasItem(descriptor, exactMatch);
|
return m_inventory->hasItem(descriptor, exactMatch);
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t Player::hasCountOfItem(ItemDescriptor const& descriptor, bool exactMatch) const {
|
uint64_t Player::hasCountOfItem(ItemDescriptor const& descriptor, bool exactMatch) const {
|
||||||
return m_inventory->hasCountOfItem(descriptor, exactMatch);
|
return m_inventory->hasCountOfItem(descriptor, exactMatch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -198,7 +198,7 @@ public:
|
|||||||
PlayerInventoryPtr inventory() const;
|
PlayerInventoryPtr inventory() const;
|
||||||
// Returns the number of items from this stack that could be
|
// Returns the number of items from this stack that could be
|
||||||
// picked up from the world, using inventory tab filtering
|
// picked up from the world, using inventory tab filtering
|
||||||
size_t itemsCanHold(ItemPtr const& items) const;
|
uint64_t itemsCanHold(ItemPtr const& items) const;
|
||||||
// Adds items to the inventory, returning the overflow.
|
// Adds items to the inventory, returning the overflow.
|
||||||
// The items parameter is invalid after use.
|
// The items parameter is invalid after use.
|
||||||
ItemPtr pickupItems(ItemPtr const& items);
|
ItemPtr pickupItems(ItemPtr const& items);
|
||||||
@ -209,7 +209,7 @@ public:
|
|||||||
void triggerPickupEvents(ItemPtr const& item);
|
void triggerPickupEvents(ItemPtr const& item);
|
||||||
|
|
||||||
bool hasItem(ItemDescriptor const& descriptor, bool exactMatch = false) const;
|
bool hasItem(ItemDescriptor const& descriptor, bool exactMatch = false) const;
|
||||||
size_t hasCountOfItem(ItemDescriptor const& descriptor, bool exactMatch = false) const;
|
uint64_t hasCountOfItem(ItemDescriptor const& descriptor, bool exactMatch = false) const;
|
||||||
// altough multiple entries may match, they might have different
|
// altough multiple entries may match, they might have different
|
||||||
// serializations
|
// serializations
|
||||||
ItemDescriptor takeItem(ItemDescriptor const& descriptor, bool consumePartial = false, bool exactMatch = false);
|
ItemDescriptor takeItem(ItemDescriptor const& descriptor, bool consumePartial = false, bool exactMatch = false);
|
||||||
|
Loading…
Reference in New Issue
Block a user