27#include "guillaume/ecs/system_filler.hpp"
29#include "guillaume/components/radio_group.hpp"
Stores every component of a scene, per component type and per entity identifier, and knows which ones...
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...
static void select(ecs::ComponentRegistry &componentRegistry, const ecs::Entity::Identifier &entityIdentifier, std::size_t index)
Select an option from code and show it at once.
~RadioGroup(void) override=default
Default destructor.
static void press(ecs::ComponentRegistry &componentRegistry, const ecs::Entity::Identifier &entityIdentifier, std::size_t index)
Select an option as a click on its radio button does.
static void install(ecs::ComponentRegistry &componentRegistry, const ecs::Entity::Identifier &entityIdentifier)
Make an entity behave as a radio group.
RadioGroup(void)
Create the system for the Layout phase, matching entities that have a components::RadioGroup.
static void apply(ecs::ComponentRegistry &componentRegistry, const ecs::Entity::Identifier &entityIdentifier)
Make the radio buttons agree with the value of the group, then stack them.
void update(const ecs::Entity::Identifier &entityIdentifier) override
Frame entry point: call apply on one radio group.
Rules. Every class here runs each frame on the entities that have the components it declares.