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

Method containerClose

source/game/objects/StarContainerObject.cpp:235–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void ContainerObject::containerClose() {
236 --m_count;
237 if (m_count <= 0) {
238 m_count = 0;
239 m_opened.set(0);
240 }
241}
242
243RpcPromise<ItemPtr> ContainerObject::addItems(ItemPtr const& items) {
244 if (isSlave()) {

Callers 1

openContainerMethod · 0.45

Calls 1

setMethod · 0.45

Tested by

no test coverage detected