27#include "guillaume/ecs/system_filler.hpp"
29#include "guillaume/components/bound.hpp"
30#include "guillaume/components/selection.hpp"
31#include "guillaume/components/transform.hpp"
60 components::Transform, components::Bound>
111 const std::vector<ecs::Entity::Identifier> &childIdentifiers);
136 const std::vector<ecs::Entity::Identifier> &childIdentifiers,
Stores every component of a scene, per component type and per entity identifier, and knows which ones...
std::size_t Identifier
The key under which an entity's components are stored. Systems and components refer to entities by th...
The base class to derive a system from: a System whose signature is the list of component types given...
Selection(void)
Create the system, in the Event phase.
static ecs::Entity::Identifier select(ecs::ComponentRegistry ®istry, const ecs::Entity::Identifier &groupIdentifier, const std::vector< ecs::Entity::Identifier > &childIdentifiers, ecs::Entity::Identifier selectedIdentifier)
Select one child of a group, at once.
~Selection(void) override=default
Default destructor.
static ecs::Entity::Identifier reconcile(ecs::ComponentRegistry ®istry, const ecs::Entity::Identifier &groupIdentifier, const std::vector< ecs::Entity::Identifier > &childIdentifiers)
Make a group and its children agree on which child is selected.
void update(const ecs::Entity::Identifier &entityIdentifier) override
Reconcile one group with the children listed in its components::Hierarchy.
Rules. Every class here runs each frame on the entities that have the components it declares.