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

Method writeStoredData

source/game/objects/StarContainerObject.cpp:426–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426Json ContainerObject::writeStoredData() const {
427 return Object::writeStoredData().setAll({
428 {"opened", m_opened.get()},
429 {"currentState", m_currentState},
430 {"crafting", m_crafting.get()},
431 {"craftingProgress", m_craftingProgress.get()},
432 {"initialized", m_initialized},
433 {"items", m_items->diskStore()},
434 {"ageItemsTimer", m_ageItemsTimer.toJson()}
435 });
436}
437
438ItemRecipe ContainerObject::recipeForMaterials(List<ItemPtr> const& inputItems) {
439 auto& root = Root::singleton();

Callers

nothing calls this directly

Calls 4

setAllMethod · 0.80
getMethod · 0.45
diskStoreMethod · 0.45
toJsonMethod · 0.45

Tested by

no test coverage detected