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

Method hasCollectable

source/game/StarCollectionDatabase.cpp:82–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82bool CollectionDatabase::hasCollectable(String const& collectionName, String const& collectableName) const {
83 return (m_collections.contains(collectionName) && m_collectables.get(collectionName).contains(collectableName));
84}
85
86Collectable CollectionDatabase::parseGenericCollectable(String const& name, Json const& config) const {
87 Collectable collectable;

Callers 1

receiveMessageMethod · 0.80

Calls 2

containsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected