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

Method allRecipes

source/game/StarItemDatabase.cpp:390–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390HashSet<ItemRecipe> ItemDatabase::allRecipes(StringSet const& types) const {
391 HashSet<ItemRecipe> res;
392 for (auto const& i : m_recipes) {
393 if (i.groups.hasIntersection(types))
394 res.add(i);
395 }
396 return res;
397}
398
399ItemPtr ItemDatabase::applyAugment(ItemPtr const item, AugmentItem* augment) const {
400 if (item) {

Callers 1

determineRecipesMethod · 0.45

Calls 2

hasIntersectionMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected