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

Method getCompanions

source/game/StarPlayerCompanions.cpp:74–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74List<CompanionPtr> PlayerCompanions::getCompanions(String const& category) const {
75 if (m_companions.contains(category))
76 return m_companions.get(category);
77 return {};
78}
79
80void PlayerCompanions::init(Entity* player, World* world) {
81 m_world = world;

Callers 2

updateMethod · 0.80
updateMethod · 0.80

Calls 2

containsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected