summaryrefslogtreecommitdiff
path: root/sim/src/Builder.h
blob: 8d362b200475ae6d9e6175d37550835befadaa94 (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
28
29
30
31
32
33
34
35
#pragma once

#include <entt/entt.hpp>

#include <kurator/universe/ShipType.h>
#include <kurator/universe/TurretType.h>

#include "Spawner.h"


namespace kurator
{
namespace sim
{


class Builder
{
public:
	Builder(entt::registry& _registry, Spawner& _spawner);
	~Builder() = default;
	Builder(Builder&&) = delete;
	Builder(const Builder&) = delete;
	Builder& operator=(Builder&&) = delete;
	Builder& operator=(const Builder&) = delete;
	entt::entity operator()(const universe::ShipType& ship_type, int team) const;
	entt::entity operator()(const universe::TurretType& turret_type, const entt::entity& owner) const;
private:
	entt::registry& registry;
	Spawner& spawner;
};


}  // namespace sim
}  // namespace kurator