29#include <utility/event/event.hpp>
31#include "guillaume/ecs/component.hpp"
81 template<utility::event::InheritFromEvent EventType,
IsEnum ButtonEnum,
82 std::size_t N,
const std::array<ButtonEnum, N> &ButtonsArray>
97 std::map<ButtonEnum, ButtonPressHandler>
98 _onButtonPressHandlers {};
99 std::map<ButtonEnum, ButtonReleaseHandler>
100 _onButtonReleaseHandlers {};
101 std::map<ButtonEnum, bool>
191#include "guillaume/components/button_interaction.tpp"
Base class of every component: a piece of state attached to an entity, plus a "changed" flag.
True when a type is an enumeration.
State. Every class here is plain data attached to an entity.