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

Method codex

source/game/StarCodexDatabase.cpp:35–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35CodexConstPtr CodexDatabase::codex(String const& codexId) const {
36 if (auto codex = m_codexes.maybe(codexId))
37 return codex.take();
38 return {};
39}
40
41}

Callers 2

PlayerCodexesMethod · 0.80
learnCodexMethod · 0.80

Calls 2

maybeMethod · 0.45
takeMethod · 0.45

Tested by

no test coverage detected