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

summaryrefslogtreecommitdiff
path: root/source/game/StarWorldClient.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-11-24 20:35:45 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2023-11-24 20:35:45 +1100
commit994b0fe3cff39a2640d931aa3677f2474863cd47 (patch)
tree804f5d051873aa48c65224dbd14a36a11654a3ca /source/game/StarWorldClient.hpp
parentde53f8c7d73bcd3e2aab57e56f337818fd11ce92 (diff)
Fix TestUniverse
Diffstat (limited to 'source/game/StarWorldClient.hpp')
-rw-r--r--source/game/StarWorldClient.hpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/source/game/StarWorldClient.hpp b/source/game/StarWorldClient.hpp
index 7298863..a8080f1 100644
--- a/source/game/StarWorldClient.hpp
+++ b/source/game/StarWorldClient.hpp
@@ -122,11 +122,14 @@ public:
void resetGravity();
// Disable normal client-side lighting algorithm, everything full brightness.
- bool toggleFullbright();
+ bool fullBright() const;
+ void setFullBright(bool fullBright);
// Disable asynchronous client-side lighting algorithm, run on main thread.
- bool toggleAsyncLighting();
+ bool asyncLighting() const;
+ void setAsyncLighting(bool asyncLighting);
// Spatial log generated collision geometry.
- bool toggleCollisionDebug();
+ bool collisionDebug() const;
+ void setCollisionDebug(bool collisionDebug);
void handleIncomingPackets(List<PacketPtr> const& packets);
List<PacketPtr> getOutgoingPackets();
@@ -167,7 +170,7 @@ public:
void collectLiquid(List<Vec2I> const& tilePositions, LiquidId liquidId);
- void waitForLighting();
+ void waitForLighting(Image* out = nullptr);
typedef std::function<bool(PlayerPtr, StringView)> BroadcastCallback;
BroadcastCallback& broadcastCallback();
@@ -269,7 +272,7 @@ private:
Mutex m_lightingMutex;
ConditionVariable m_lightingCond;
- atomic<WorldRenderData*> m_renderData;
+ Image m_lightMap;
atomic<bool> m_stopLightingThread;
SkyPtr m_sky;