| 269 | } |
| 270 | |
| 271 | void 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 | |
| 281 | Json ServerClientContext::storeServerData() { |
| 282 | RecursiveMutexLocker locker(m_mutex); |
no test coverage detected