| 25 | } |
| 26 | |
| 27 | ClientContext::ClientContext(Uuid serverUuid, Uuid playerUuid) { |
| 28 | m_serverUuid = std::move(serverUuid); |
| 29 | m_playerUuid = std::move(playerUuid); |
| 30 | m_rpc = std::make_shared<JsonRpc>(); |
| 31 | |
| 32 | m_netGroup.addNetElement(&m_orbitWarpActionNetState); |
| 33 | m_netGroup.addNetElement(&m_playerWorldIdNetState); |
| 34 | m_netGroup.addNetElement(&m_isAdminNetState); |
| 35 | m_netGroup.addNetElement(&m_teamNetState); |
| 36 | m_netGroup.addNetElement(&m_shipUpgrades); |
| 37 | m_netGroup.addNetElement(&m_shipCoordinate); |
| 38 | } |
| 39 | |
| 40 | Uuid ClientContext::serverUuid() const { |
| 41 | return m_serverUuid; |
nothing calls this directly
no test coverage detected