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

Method codexes

source/game/StarPlayerCodexes.cpp:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28List<PlayerCodexes::CodexEntry> PlayerCodexes::codexes() const {
29 List<CodexEntry> result;
30 for (auto pair : m_codexes)
31 result.append(pair.second);
32 sort(result,
33 [](CodexEntry const& left, CodexEntry const& right) -> bool {
34 return make_tuple(left.second, left.first->title()) < make_tuple(right.second, right.first->title());
35 });
36 return result;
37}
38
39bool PlayerCodexes::codexKnown(String const& codexId) const {
40 return m_codexes.contains(codexId);

Callers

nothing calls this directly

Calls 3

sortFunction · 0.50
appendMethod · 0.45
titleMethod · 0.45

Tested by

no test coverage detected