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

Method toJson

source/game/StarCodex.cpp:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19Json Codex::toJson() const {
20 auto result = JsonObject{
21 {"id", m_id},
22 {"species", m_species},
23 {"title", m_title},
24 {"description", m_description},
25 {"icon", m_icon},
26 {"contentPages", jsonFromStringList(m_pages)},
27 {"itemConfig", m_itemConfig}};
28 return result;
29}
30
31String Codex::id() const {
32 return m_id;

Callers

nothing calls this directly

Calls 1

jsonFromStringListFunction · 0.85

Tested by

no test coverage detected