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

Method doClearContainer

source/game/objects/StarContainerObject.cpp:544–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544List<ItemPtr> ContainerObject::doClearContainer() {
545 stopCrafting();
546 List<ItemPtr> result = m_items->takeAll();
547 m_items->clearItems();
548 itemsUpdated();
549 return result;
550}
551
552void ContainerObject::itemsUpdated() {
553 m_itemsUpdated = true;

Callers

nothing calls this directly

Calls 2

takeAllMethod · 0.80
clearItemsMethod · 0.80

Tested by

no test coverage detected