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

Method takeSlot

source/game/StarPlayerInventory.cpp:122–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122ItemPtr PlayerInventory::takeSlot(InventorySlot const& slot) {
123 if (slot.is<SwapSlot>())
124 m_swapReturnSlot = {};
125 return take(retrieve(slot));
126}
127
128bool PlayerInventory::exchangeItems(InventorySlot const& first, InventorySlot const& second) {
129 auto& firstItems = retrieve(first);

Callers 4

dropItemMethod · 0.80
clearSwapMethod · 0.80
nakedMethod · 0.80
InventoryPaneMethod · 0.80

Calls 1

takeFunction · 0.85

Tested by

no test coverage detected