summaryrefslogtreecommitdiff
path: root/sim/src/Builder.h
blob: 31c71203e704dcd29d2d2c3997af584197442378 (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/entity/registry.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