summaryrefslogtreecommitdiff
path: root/game/scenary/light.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-09 20:17:55 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-09 20:17:55 +0000
commitbb693756b9aace889f806a768b54655023d163ab (patch)
tree47216b8c5bef15acd5a84124a64c9a036498d25f /game/scenary/light.h
parentInteger support in persistence (diff)
downloadilt-bb693756b9aace889f806a768b54655023d163ab.tar.bz2
ilt-bb693756b9aace889f806a768b54655023d163ab.tar.xz
ilt-bb693756b9aace889f806a768b54655023d163ab.zip
Add the Illuminator (type) and Light (instance) classes
Diffstat (limited to 'game/scenary/light.h')
-rw-r--r--game/scenary/light.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/game/scenary/light.h b/game/scenary/light.h
new file mode 100644
index 0000000..0b19535
--- /dev/null
+++ b/game/scenary/light.h
@@ -0,0 +1,19 @@
+#pragma once
+
+#include "game/worldobject.h"
+#include "illuminator.h"
+
+class Location;
+
+class Light : public WorldObject {
+ std::shared_ptr<const Illuminator> type;
+ InstanceVertices<Illuminator::LocationVertex>::InstanceProxy location;
+
+ void
+ tick(TickDuration) override
+ {
+ }
+
+public:
+ Light(std::shared_ptr<const Illuminator> type, const Location & position);
+};