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

Method addObjectItems

source/game/StarItemDatabase.cpp:661–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

659}
660
661void ItemDatabase::addObjectItems() {
662 auto objectDatabase = Root::singleton().objectDatabase();
663
664 for (auto const& objectName : objectDatabase->allObjects()) {
665 auto objectConfig = objectDatabase->getConfig(objectName);
666
667 if (objectConfig->hasObjectItem)
668 addObjectDropItem(objectConfig->path, objectConfig->config);
669 }
670}
671
672void ItemDatabase::scanRecipes() {
673 auto assets = Root::singleton().assets();

Callers

nothing calls this directly

Calls 4

singletonClass · 0.85
objectDatabaseMethod · 0.80
allObjectsMethod · 0.80
getConfigMethod · 0.80

Tested by

no test coverage detected