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

Method ClientContext

source/game/StarClientContext.cpp:27–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27ClientContext::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
40Uuid ClientContext::serverUuid() const {
41 return m_serverUuid;

Callers

nothing calls this directly

Calls 1

addNetElementMethod · 0.45

Tested by

no test coverage detected