summaryrefslogtreecommitdiff
path: root/assetFactory/use.h
blob: 96f07f6c51ef9c2403e5837d13db661fd92cb973 (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"

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

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

	Shape::CPtr type;
	std::string colour;
	FaceControllers faceControllers;

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