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

Method markCodexUnread

source/game/StarPlayerCodexes.cpp:66–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66bool PlayerCodexes::markCodexUnread(String const& codexId) {
67 if (codexKnown(codexId) && codexRead(codexId)) {
68 m_codexes[codexId].second = false;
69 return true;
70 }
71 return false;
72}
73
74void PlayerCodexes::learnInitialCodexes(String const& playerSpecies) {
75 for (auto codexId : jsonToStringList(Root::singleton().assets()->json(strf("/player.config:defaultCodexes.{}", playerSpecies))))

Callers 2

fireTriggeredMethod · 0.80
makePlayerCallbacksMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected