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

Method itemCount

source/frontend/StarCraftingInterface.cpp:227–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227size_t CraftingPane::itemCount(List<ItemPtr> const& store, ItemDescriptor const& item) {
228 auto itemDb = Root::singleton().itemDatabase();
229 return itemDb->getCountOfItem(store, item);
230}
231
232void CraftingPane::update(float dt) {
233 // shut down if we can't reach the table anymore.

Callers

nothing calls this directly

Calls 3

singletonClass · 0.85
itemDatabaseMethod · 0.80
getCountOfItemMethod · 0.80

Tested by

no test coverage detected