summaryrefslogtreecommitdiff
path: root/assetFactory/asset.h
diff options
context:
space:
mode:
Diffstat (limited to 'assetFactory/asset.h')
-rw-r--r--assetFactory/asset.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/assetFactory/asset.h b/assetFactory/asset.h
index d86b804..8dd1ecb 100644
--- a/assetFactory/asset.h
+++ b/assetFactory/asset.h
@@ -12,6 +12,28 @@ public:
FactoryMesh::Collection meshes;
protected:
+ struct MeshConstruct : public Persistence::SelectionPtrBase<FactoryMesh::Ptr> {
+ using Persistence::SelectionPtrBase<FactoryMesh::Ptr>::setValue;
+
+ MeshConstruct(Mesh::Ptr & m);
+
+ void endObject(Persistence::Stack & stk) override;
+
+ FactoryMesh::Ptr fmesh;
+ Mesh::Ptr & out;
+ };
+
+ struct MeshArrayConstruct : public Persistence::SelectionPtrBase<FactoryMesh::Ptr> {
+ using Persistence::SelectionPtrBase<FactoryMesh::Ptr>::setValue;
+
+ MeshArrayConstruct(std::span<Mesh::Ptr> m);
+
+ void endObject(Persistence::Stack & stk) override;
+
+ FactoryMesh::Ptr fmesh;
+ std::span<Mesh::Ptr> out;
+ };
+
friend Persistence::SelectionPtrBase<std::shared_ptr<Asset>>;
bool persist(Persistence::PersistenceStore & store) override;
};