diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-04-01 20:31:29 +0100 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-04-01 20:31:29 +0100 |
| commit | 74a241680dcb8e543c7e2ab70eb0cfe00d01f22a (patch) | |
| tree | 8c20214dbd0f2cc0012e5a7057f72999261c240d /game/scenary/illuminator.h | |
| parent | Have Renderable manage all instance lights (diff) | |
| download | ilt-74a241680dcb8e543c7e2ab70eb0cfe00d01f22a.tar.bz2 ilt-74a241680dcb8e543c7e2ab70eb0cfe00d01f22a.tar.xz ilt-74a241680dcb8e543c7e2ab70eb0cfe00d01f22a.zip | |
Move spot/point light persistence wrappers to assetFactory
Diffstat (limited to 'game/scenary/illuminator.h')
| -rw-r--r-- | game/scenary/illuminator.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/game/scenary/illuminator.h b/game/scenary/illuminator.h index b99a19e..216b536 100644 --- a/game/scenary/illuminator.h +++ b/game/scenary/illuminator.h @@ -1,8 +1,8 @@ #pragma once #include "assetFactory/asset.h" +#include "assetFactory/lights.h" #include "gfx/gl/instanceVertices.h" -#include "gfx/models/lights.h" #include "gfx/models/texture.h" #include "gfx/renderable.h" @@ -18,18 +18,6 @@ class Illuminator : public Asset, public Renderable, public StdTypeDefs<Illumina public: [[nodiscard]] std::any createAt(const Location &) const override; - struct SpotLight : Persistence::Persistable, SpotLightDef, StdTypeDefs<SpotLight> { - private: - friend Persistence::SelectionPtrBase<std::shared_ptr<SpotLight>>; - bool persist(Persistence::PersistenceStore & store) override; - }; - - struct PointLight : Persistence::Persistable, PointLightDef, StdTypeDefs<PointLight> { - private: - friend Persistence::SelectionPtrBase<std::shared_ptr<PointLight>>; - bool persist(Persistence::PersistenceStore & store) override; - }; - struct InstanceVertex { CommonLocationInstance location; }; |
