summaryrefslogtreecommitdiff
path: root/assetFactory/factoryMesh.h
diff options
context:
space:
mode:
Diffstat (limited to 'assetFactory/factoryMesh.h')
-rw-r--r--assetFactory/factoryMesh.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/assetFactory/factoryMesh.h b/assetFactory/factoryMesh.h
index f850893..4b6d3e5 100644
--- a/assetFactory/factoryMesh.h
+++ b/assetFactory/factoryMesh.h
@@ -4,11 +4,15 @@
#include "stdTypeDefs.hpp"
#include "use.h"
-class FactoryMesh : public StdTypeDefs<FactoryMesh> {
+class FactoryMesh : public Persistence::Persistable, public StdTypeDefs<FactoryMesh> {
public:
Mesh::Ptr createMesh() const;
std::string id;
glm::vec3 size;
Use::Collection uses;
+
+private:
+ friend Persistence::SelectionPtrBase<std::shared_ptr<FactoryMesh>, true>;
+ bool persist(Persistence::PersistenceStore & store) override;
};