3 #include <EntitySystem.hpp>
5 #include <SFML/System.hpp>
26 void add(std::shared_ptr<EntitySystem> system);
38 void add(std::shared_ptr<Entity> entity);
47 void update(
const sf::Time deltaTime);
50 std::vector<std::shared_ptr<EntitySystem>> _systems;
51 std::map<int, std::shared_ptr<Entity>> _entities;
A engine for handling a component entity system.
Definition: EntityEngine.hpp:14
void add(std::shared_ptr< Entity > entity)
Adds an entity to the engine.
void update(const sf::Time deltaTime)
Updates all systems in the engine.
void add(std::shared_ptr< EntitySystem > system)
Adds a system to the engine.