summaryrefslogtreecommitdiff
path: root/assetFactory/use.h
blob: 5b61eca44c1fac33a1e69bd339631c8a4d6e365d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#include "faceController.h"
#include "modelFactoryMesh_fwd.h"
#include "persistence.h"
#include "shape.h"
#include "stdTypeDefs.hpp"
#include "style.h"

class Use : public StdTypeDefs<Use>, public Mutation, public Style, public Persistence::Persistable {
public:
	using FaceControllers = std::map<std::string, std::unique_ptr<FaceController>>;

	Shape::CreatedFaces createMesh(ModelFactoryMesh & mesh, const Mutation::Matrix & mutation) const;

	Shape::CPtr type;
	FaceControllers faceControllers;

private:
	friend Persistence::SelectionPtrBase<std::shared_ptr<Use>, true>;
	bool persist(Persistence::PersistenceStore & store) override;
	std::string
	getId() const override
	{
		return {};
	};
};