diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-23 01:01:23 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-23 01:01:23 +1000 |
commit | 5fa97741e509f813d28db90e7bce1aac45e22829 (patch) | |
tree | 3095676703537068857c55dfc7b4311e33f03706 /source/game/StarWorldServer.hpp | |
parent | cb19eef701b5c9e27d0464795fffcf8a4d795a21 (diff) |
experimental universe.sendWorldMessage function
Diffstat (limited to 'source/game/StarWorldServer.hpp')
-rw-r--r-- | source/game/StarWorldServer.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/game/StarWorldServer.hpp b/source/game/StarWorldServer.hpp index 66a21d3..b8f3965 100644 --- a/source/game/StarWorldServer.hpp +++ b/source/game/StarWorldServer.hpp @@ -14,6 +14,7 @@ #include "StarLuaRoot.hpp" #include "StarWorldRenderData.hpp" #include "StarWarping.hpp" +#include "StarRpcThreadPromise.hpp" namespace Star { @@ -98,6 +99,8 @@ public: void handleIncomingPackets(ConnectionId clientId, List<PacketPtr> const& packets); List<PacketPtr> getOutgoingPackets(ConnectionId clientId); + Maybe<Json> receiveMessage(ConnectionId fromConnection, String const& message, JsonArray const& args); + void startFlyingSky(bool enterHyperspace, bool startInWarp); void stopFlyingSkyAt(SkyParameters const& destination); void setOrbitalSky(SkyParameters const& destination); @@ -106,6 +109,9 @@ public: WorldServerFidelity fidelity() const; void setFidelity(WorldServerFidelity fidelity); + bool shouldExpire(); + void setExpiryTime(float expiryTime); + void update(float dt); ConnectionId connection() const override; @@ -379,6 +385,8 @@ private: List<PhysicsForceRegion> m_forceRegions; String m_worldId; + + GameTimer m_expiryTimer; }; } |