Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
108
Json Statistics::Stat::toJson() const {
109
return JsonObject {
110
{
"type"
, type},
111
{
"value"
, value}
112
};
113
}
114
115
void Statistics::processEvent(String const& name, Json const& fields) {
116
if (m_service)
Callers
1
writeStatistics
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected