summaryrefslogtreecommitdiff
path: root/game/environment.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-09-20 20:27:51 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-09-20 20:27:51 +0100
commit9b3eff2ee85ca6627342cfbbe1ac3ba988dc377f (patch)
tree80eb3be43b8552282ab8cc2ab7756ee0a164c456 /game/environment.h
parentAdd basic environment object (diff)
downloadilt-9b3eff2ee85ca6627342cfbbe1ac3ba988dc377f.tar.bz2
ilt-9b3eff2ee85ca6627342cfbbe1ac3ba988dc377f.tar.xz
ilt-9b3eff2ee85ca6627342cfbbe1ac3ba988dc377f.zip
Move getSunPos to Environment
Diffstat (limited to 'game/environment.h')
-rw-r--r--game/environment.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/game/environment.h b/game/environment.h
index 62eedb8..a6f3036 100644
--- a/game/environment.h
+++ b/game/environment.h
@@ -1,5 +1,6 @@
#pragma once
+#include "config/types.h"
#include "worldobject.h"
class SceneRenderer;
@@ -10,6 +11,7 @@ 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;