summaryrefslogtreecommitdiff
path: root/assetFactory/object.h
diff options
context:
space:
mode:
Diffstat (limited to 'assetFactory/object.h')
-rw-r--r--assetFactory/object.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/assetFactory/object.h b/assetFactory/object.h
new file mode 100644
index 0000000..f3726c7
--- /dev/null
+++ b/assetFactory/object.h
@@ -0,0 +1,26 @@
+#pragma once
+
+#include "persistence.h"
+#include "shape.h"
+#include "stdTypeDefs.hpp"
+#include "use.h"
+
+class Object : public StdTypeDefs<Object>, public Shape, public Persistence::Persistable {
+public:
+ Object() = default;
+ Object(std::string i);
+
+ CreatedFaces createMesh(ModelFactoryMesh & mesh, const Mutation::Matrix & mutation) const override;
+
+ Use::Collection uses;
+ std::string id;
+
+private:
+ friend Persistence::SelectionPtrBase<std::shared_ptr<Object>>;
+ bool persist(Persistence::PersistenceStore & store) override;
+ std::string
+ getId() const override
+ {
+ return id;
+ };
+};