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

Method loadServerData

source/game/StarServerClientContext.cpp:271–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271void ServerClientContext::loadServerData(Json const& store) {
272 RecursiveMutexLocker locker(m_mutex);
273 m_shipCoordinate.set(CelestialCoordinate(store.get("shipCoordinate")));
274 m_shipSystemLocation = jsonToSystemLocation(store.get("systemLocation"));
275 setAdmin(store.getBool("isAdmin"));
276 setTeam(EntityDamageTeam(store.get("team")));
277 m_reviveWarp = WarpToWorld(store.get("reviveWarp"));
278 m_returnWarp = WarpToWorld(store.get("returnWarp"));
279}
280
281Json ServerClientContext::storeServerData() {
282 RecursiveMutexLocker locker(m_mutex);

Callers 1

acceptConnectionMethod · 0.80

Calls 7

CelestialCoordinateClass · 0.85
jsonToSystemLocationFunction · 0.85
EntityDamageTeamClass · 0.85
WarpToWorldClass · 0.85
getBoolMethod · 0.80
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected