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

Method collection

source/game/StarCollectionDatabase.cpp:58–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58Collection CollectionDatabase::collection(String const& collectionName) const {
59 try {
60 return m_collections.get(collectionName);
61 } catch (MapException const& e) {
62 throw CollectionDatabaseException(strf("Collection '{}' not found", collectionName), e);
63 }
64}
65
66List<Collectable> CollectionDatabase::collectables(String const& collectionName) const {
67 try {

Callers 2

addCollectableMethod · 0.80
makeRootCallbacksMethod · 0.80

Calls 2

strfFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected