summaryrefslogtreecommitdiff
path: root/assetFactory/factoryMesh.h
blob: b09b54f0b1d6e3a7de8c85aede13244580e81b18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "config/types.h"
#include "gfx/models/mesh.h"
#include "stdTypeDefs.h"
#include "use.h"

class FactoryMesh : public Persistence::Persistable, public StdTypeDefs<FactoryMesh> {
public:
	Mesh::Ptr createMesh() const;

	std::string id;
	Size3D size;
	Use::Collection uses;

private:
	friend Persistence::SelectionPtrBase<std::shared_ptr<FactoryMesh>>;
	bool persist(Persistence::PersistenceStore & store) override;
};