Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarServerClientContext.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2025-01-05 15:21:27 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2025-01-05 15:21:27 +1100
commitc47bceb3f3ea0d041f3a6cb053f932c00c39f396 (patch)
treec8ab3e3c8b3443f3bdcb3d5d2c77b9a7b2f7675d /source/game/StarServerClientContext.hpp
parent9bc12f5f97f6774e6eeeb3ef577e026cc8d03357 (diff)
add time played support to server query results
Diffstat (limited to 'source/game/StarServerClientContext.hpp')
-rw-r--r--source/game/StarServerClientContext.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/game/StarServerClientContext.hpp b/source/game/StarServerClientContext.hpp
index 7c54765..b81b706 100644
--- a/source/game/StarServerClientContext.hpp
+++ b/source/game/StarServerClientContext.hpp
@@ -85,6 +85,8 @@ public:
void loadServerData(Json const& store);
Json storeServerData();
+ int64_t creationTime() const;
+
private:
ConnectionId const m_clientId;
Maybe<HostAddress> const m_remoteAddress;
@@ -109,6 +111,7 @@ private:
NetElementTopGroup m_netGroup;
uint64_t m_netVersion = 0;
+ int64_t m_creationTime;
NetElementData<Maybe<pair<WarpAction, WarpMode>>> m_orbitWarpActionNetState;
NetElementData<WorldId> m_playerWorldIdNetState;