28#include "guillaume/ecs/component.hpp"
40 template<
typename EventType>
114 template<
typename EventType,
bool HasFactory = HasFactoryType<EventType>>
159 typename EventType::Factory;
164#include "guillaume/components/interaction.tpp"
EventHandler getOnEventHandler(void) const
Get the callback run when the input reaches the entity.
std::function< void( void)> EventHandler
Callback run when the input reaches the entity.
void setOnEventHandler(const EventHandler &handler)
Store the callback to run when the input reaches the entity.
InteractionBase(void)
Construct an interaction without handler.
EventHandler _onEventHandler
Interaction(void)
Construct an interaction without handler, on a default-constructed event.
Interaction(void)
Construct an interaction without handler, on a default-constructed event.
Component that makes an entity react to one kind of input event (a hand pinch, a hand poke,...
Base class of every component: a piece of state attached to an entity, plus a "changed" flag.
True when an event type declares a nested Factory type.
State. Every class here is plain data attached to an entity.