summaryrefslogtreecommitdiff
path: root/game/environment.h
blob: a6f3036aa3182ef80de2cebd2463bdda91e8cdff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
};