25#include "guillaume/ecs/system_filler.hpp"
27#include "guillaume/event/event_bus.hpp"
28#include "guillaume/event/event_manager.hpp"
30#include "guillaume/components/bound.hpp"
31#include "guillaume/components/drag_interaction.hpp"
32#include "guillaume/components/hand_button_interaction.hpp"
33#include "guillaume/components/mouse_button_interaction.hpp"
34#include "guillaume/components/transform.hpp"
36#include <utility/event/mouse_motion_event.hpp>
69 components::Transform, components::Bound,
70 components::MouseButtonInteraction,
71 components::HandButtonInteraction>,
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.
Drag(event::EventBus &eventBus)
Create the system, in the Event phase, and subscribe it to mouse motion events.
void update(const ecs::Entity::Identifier &entityIdentifier) override
Start, continue or end the drag of one entity.
void prepare(void) override
Take the next pending mouse motion event, once per frame.
Rules. Every class here runs each frame on the entities that have the components it declares.