summaryrefslogtreecommitdiff
path: root/assetFactory/lights.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2026-04-01 20:31:29 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2026-04-01 20:31:29 +0100
commit74a241680dcb8e543c7e2ab70eb0cfe00d01f22a (patch)
tree8c20214dbd0f2cc0012e5a7057f72999261c240d /assetFactory/lights.cpp
parentHave Renderable manage all instance lights (diff)
downloadilt-74a241680dcb8e543c7e2ab70eb0cfe00d01f22a.tar.bz2
ilt-74a241680dcb8e543c7e2ab70eb0cfe00d01f22a.tar.xz
ilt-74a241680dcb8e543c7e2ab70eb0cfe00d01f22a.zip
Move spot/point light persistence wrappers to assetFactory
Diffstat (limited to 'assetFactory/lights.cpp')
-rw-r--r--assetFactory/lights.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/assetFactory/lights.cpp b/assetFactory/lights.cpp
new file mode 100644
index 0000000..ec8e17e
--- /dev/null
+++ b/assetFactory/lights.cpp
@@ -0,0 +1,14 @@
+#include "lights.h"
+
+bool
+SpotLight::persist(Persistence::PersistenceStore & store)
+{
+ return STORE_TYPE && STORE_MEMBER(position) && STORE_MEMBER(direction) && STORE_MEMBER(colour) && STORE_MEMBER(kq)
+ && STORE_MEMBER(arc);
+}
+
+bool
+PointLight::persist(Persistence::PersistenceStore & store)
+{
+ return STORE_TYPE && STORE_MEMBER(position) && STORE_MEMBER(colour) && STORE_MEMBER(kq);
+}