MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / takeItem

Method takeItem

source/game/StarPlayer.cpp:1300–1302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1298}
1299
1300ItemDescriptor Player::takeItem(ItemDescriptor const& descriptor, bool consumePartial, bool exactMatch) {
1301 return m_inventory->takeItems(descriptor, consumePartial, exactMatch);
1302}
1303
1304void Player::giveItem(ItemDescriptor const& descriptor) {
1305 giveItem(Root::singleton().itemDatabase()->item(descriptor));

Callers 1

makePlayerCallbacksMethod · 0.80

Calls 1

takeItemsMethod · 0.45

Tested by

no test coverage detected