Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
EntityProvider.hpp
Go to the documentation of this file.
1
6#pragma once
7
8#include <stdlib.h>
9#include <queue>
10
11#include <ECS/Entity.hpp>
12
13namespace shkyera {
14
20 public:
26
28
30
34 ~EntityProvider() = default;
35
42
43 private:
47 std::atomic<Entity> _nextEntity;
48};
49
50} // namespace shkyera
Definition EntityProvider.hpp:19
Entity requestEntity()
Request an available entity ID. Returns an entity ID from the pool of available IDs,...
Definition EntityProvider.cpp:14
EntityProvider & operator=(const EntityProvider &other)
Definition EntityProvider.cpp:9
std::atomic< Entity > _nextEntity
Definition EntityProvider.hpp:47
EntityProvider()
Definition EntityProvider.cpp:5
~EntityProvider()=default
Default destructor.
Definition Asset.hpp:6
uint32_t Entity
Definition Entity.hpp:7
Definition Clock.hpp:9