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

Method showContents

source/frontend/StarCodexInterface.cpp:64–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void CodexInterface::showContents(String const& codexId) {
65 CodexConstPtr result;
66 for (auto entry : m_codexList)
67 if (entry.first->id() == codexId) {
68 result = entry.first;
69 break;
70 }
71 if (result)
72 showContents(result);
73}
74
75void CodexInterface::showContents(CodexConstPtr codex) {
76 if (m_player->codexes()->markCodexRead(codex->id()))

Callers

nothing calls this directly

Calls 3

markCodexReadMethod · 0.80
idMethod · 0.45
codexesMethod · 0.45

Tested by

no test coverage detected