summaryrefslogtreecommitdiff
path: root/battles/src/Builder.h
blob: df50c4e09b2e87a832da0c867311cfee84d8d1ed (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 battles
{


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 battles
}  // namespace kurator