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

Method addToContainer

source/frontend/StarContainerInteractor.cpp:57–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void ContainerInteractor::addToContainer(ItemPtr const& items) {
58 m_pendingResults.append(openContainer()->addItems(items).wrap(resultFromItem));
59}
60
61void ContainerInteractor::takeFromContainerSlot(size_t slot, size_t count) {
62 m_pendingResults.append(openContainer()->takeItems(slot, count).wrap(resultFromItem));

Callers 3

InventoryPaneMethod · 0.80
updateMethod · 0.80
giveContainerResultMethod · 0.80

Calls 3

appendMethod · 0.45
wrapMethod · 0.45
addItemsMethod · 0.45

Tested by

no test coverage detected