25#include "guillaume/ecs/system_filler.hpp"
27#include "guillaume/event/event_manager.hpp"
28#include "guillaume/event/event_bus.hpp"
30#include "guillaume/components/bound.hpp"
31#include "guillaume/components/hand_hover_interaction.hpp"
32#include "guillaume/components/transform.hpp"
34#include <utility/event/hand_motion_event.hpp>
60 components::Transform, components::Bound>,
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.
void prepare(void) override
Take the next pending hand motion event, once per frame.
void cleanup(void) override
Does nothing.
HandMotion(event::EventBus &eventBus)
Create the system, in the Event phase, and subscribe it to hand motion events.
virtual void update(const ecs::Entity::Identifier &entityIdentifier) override
Test the hand ray against one entity and update its hovered flag, calling the hover or unhover handle...
~HandMotion(void)
Destructor.
Rules. Every class here runs each frame on the entities that have the components it declares.