summaryrefslogtreecommitdiff
path: root/assetFactory/factoryMesh.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-02-22 23:40:46 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-02-22 23:40:46 +0000
commitdf2a078c51cee464905c6fb1d1c7c4aa7873f6a1 (patch)
tree209467479c61ab42bf39510f32fd375027115dcd /assetFactory/factoryMesh.cpp
parentFixup MapByMember to work with shared or unique ptr (diff)
downloadilt-df2a078c51cee464905c6fb1d1c7c4aa7873f6a1.tar.bz2
ilt-df2a078c51cee464905c6fb1d1c7c4aa7873f6a1.tar.xz
ilt-df2a078c51cee464905c6fb1d1c7c4aa7873f6a1.zip
Implement loading asset, mesh and face definitions
Diffstat (limited to 'assetFactory/factoryMesh.cpp')
-rw-r--r--assetFactory/factoryMesh.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/assetFactory/factoryMesh.cpp b/assetFactory/factoryMesh.cpp
index baa031d..0fb72ad 100644
--- a/assetFactory/factoryMesh.cpp
+++ b/assetFactory/factoryMesh.cpp
@@ -29,3 +29,10 @@ FactoryMesh::createMesh() const
}
return std::make_shared<Mesh>(vertices, vectorOfN(vertices.size()));
}
+
+bool
+FactoryMesh::persist(Persistence::PersistenceStore & store)
+{
+ return STORE_TYPE && STORE_MEMBER(id) && STORE_MEMBER(size)
+ && STORE_NAME_HELPER("use", uses, Persistence::Appender<Use::Collection>);
+}