summaryrefslogtreecommitdiff
path: root/game/environment.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-09-23 20:11:20 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-09-23 20:11:20 +0100
commit7aeca8c54d218f28ba8d4f0e5be1aec6219dbf54 (patch)
tree6f9c122e0abdb4949a3c102b2245d007969d6091 /game/environment.h
parentDon't create lots of unnecessary tmps (diff)
parentAdjust light colour as sun rises/sets (diff)
downloadilt-7aeca8c54d218f28ba8d4f0e5be1aec6219dbf54.tar.bz2
ilt-7aeca8c54d218f28ba8d4f0e5be1aec6219dbf54.tar.xz
ilt-7aeca8c54d218f28ba8d4f0e5be1aec6219dbf54.zip
Merge branch 'sunpos'
Diffstat (limited to 'game/environment.h')
-rw-r--r--game/environment.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/game/environment.h b/game/environment.h
new file mode 100644
index 0000000..a6f3036
--- /dev/null
+++ b/game/environment.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#include "config/types.h"
+#include "worldobject.h"
+
+class SceneRenderer;
+class SceneProvider;
+
+class Environment : public WorldObject {
+public:
+ Environment();
+ void tick(TickDuration elapsed) override;
+ void render(const SceneRenderer &, const SceneProvider &) const;
+ static Direction2D getSunPos(const Direction2D position, const time_t time);
+
+private:
+ time_t worldTime;
+};