| 279 | } |
| 280 | |
| 281 | Json 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 | |
| 294 | int64_t ServerClientContext::creationTime() const { |
| 295 | return m_creationTime; |
no test coverage detected