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

Method storeServerData

source/game/StarServerClientContext.cpp:281–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281Json ServerClientContext::storeServerData() {
282 RecursiveMutexLocker locker(m_mutex);
283 auto store = JsonObject{
284 {"shipCoordinate", m_shipCoordinate.get().toJson()},
285 {"systemLocation", jsonFromSystemLocation(m_shipSystemLocation)},
286 {"isAdmin", m_isAdminNetState.get()},
287 {"team", team().toJson()},
288 {"reviveWarp", m_reviveWarp.toJson()},
289 {"returnWarp", m_returnWarp.toJson()}
290 };
291 return store;
292}
293
294int64_t ServerClientContext::creationTime() const {
295 return m_creationTime;

Callers 2

doTriggeredStorageMethod · 0.80
doDisconnectionMethod · 0.80

Calls 3

jsonFromSystemLocationFunction · 0.85
toJsonMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected