diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-09 20:17:55 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-09 20:17:55 +0000 |
commit | bb693756b9aace889f806a768b54655023d163ab (patch) | |
tree | 47216b8c5bef15acd5a84124a64c9a036498d25f /game/scenary/light.cpp | |
parent | Integer support in persistence (diff) | |
download | ilt-bb693756b9aace889f806a768b54655023d163ab.tar.bz2 ilt-bb693756b9aace889f806a768b54655023d163ab.tar.xz ilt-bb693756b9aace889f806a768b54655023d163ab.zip |
Add the Illuminator (type) and Light (instance) classes
Diffstat (limited to 'game/scenary/light.cpp')
-rw-r--r-- | game/scenary/light.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/game/scenary/light.cpp b/game/scenary/light.cpp new file mode 100644 index 0000000..6207497 --- /dev/null +++ b/game/scenary/light.cpp @@ -0,0 +1,7 @@ +#include "light.h" +#include "location.h" + +Light::Light(std::shared_ptr<const Illuminator> type, const Location & position) : + type {std::move(type)}, location {this->type->instances.acquire(position.getRotationTransform(), position.pos)} +{ +} |