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

Method toJson

source/game/StarStatistics.cpp:108–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108Json Statistics::Stat::toJson() const {
109 return JsonObject {
110 {"type", type},
111 {"value", value}
112 };
113}
114
115void Statistics::processEvent(String const& name, Json const& fields) {
116 if (m_service)

Callers 1

writeStatisticsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected