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

Method swapInContainer

source/frontend/StarContainerInteractor.cpp:53–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void ContainerInteractor::swapInContainer(size_t slot, ItemPtr const& items) {
54 m_pendingResults.append(openContainer()->swapItems(slot, items).wrap(resultFromItem));
55}
56
57void ContainerInteractor::addToContainer(ItemPtr const& items) {
58 m_pendingResults.append(openContainer()->addItems(items).wrap(resultFromItem));

Callers 1

swapSlotMethod · 0.80

Calls 3

appendMethod · 0.45
wrapMethod · 0.45
swapItemsMethod · 0.45

Tested by

no test coverage detected