27#include "guillaume/ecs/system_filler.hpp"
29#include "guillaume/event/event_bus.hpp"
30#include "guillaume/event/event_manager.hpp"
32#include "guillaume/components/bound.hpp"
33#include "guillaume/components/transform.hpp"
62 template<ecs::InheritFromComponent InteractionType,
63 utility::event::InheritFromEvent EventType>
125 utility::event::InheritFromEvent EventType>
148 virtual void setEngaged(InteractionType &interaction,
bool engaged) = 0;
153#include "guillaume/systems/hand_event_system.tpp"
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...
Hands each engine event to the listeners subscribed to its type.
Base class that gives a system the input events of one type, one event per frame.
~HandEventSystem(void) override=default
Default destructor.
HandEventSystem(event::EventBus &eventBus)
Create the system, in the Event phase, and subscribe it to events of type EventType.
void prepare(void) override
Take the next pending event, once per frame.
void cleanup(void) override
Does nothing.
void update(const ecs::Entity::Identifier &entityIdentifier) override
React to the current event for one entity. Does nothing here; a derived system overrides it.
Base of the hand input systems that point at an entity: a gesture counts for the entity the hand ray ...
void update(const ecs::Entity::Identifier &entityIdentifier) override
Test the hand ray of the current event against one entity, store the result with setEngaged() and cal...
virtual void setEngaged(InteractionType &interaction, bool engaged)=0
Write the result of the hit test on the interaction component. Called for every visited entity,...
Constrains a template parameter to a type derived from Component (or Component itself).
Rules. Every class here runs each frame on the entities that have the components it declares.