summaryrefslogtreecommitdiff
path: root/game/environment.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-09-20 20:17:32 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-09-20 20:17:44 +0100
commit489fa7f930689dc9ff271138e613a8d68d88ee45 (patch)
treef4f4b3c8ca55e08f797dc04e0ba3d745133fba13 /game/environment.h
parentUpdate getSunPos to use a standard time_t (diff)
downloadilt-489fa7f930689dc9ff271138e613a8d68d88ee45.tar.bz2
ilt-489fa7f930689dc9ff271138e613a8d68d88ee45.tar.xz
ilt-489fa7f930689dc9ff271138e613a8d68d88ee45.zip
Add basic environment object
Will hold world time/date, weather, location etc
Diffstat (limited to 'game/environment.h')
-rw-r--r--game/environment.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/game/environment.h b/game/environment.h
new file mode 100644
index 0000000..62eedb8
--- /dev/null
+++ b/game/environment.h
@@ -0,0 +1,16 @@
+#pragma once
+
+#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;
+
+private:
+ time_t worldTime;
+};