30#include "guillaume/ecs/component.hpp"
31#include "guillaume/ecs/entity.hpp"
65 enum class Variant { Dropdown, Context, Cascading };
106 std::vector<ecs::Entity::Identifier>
111 std::vector<ecs::Entity::Identifier>
129 Variant _variant { Variant::Dropdown };
131 std::vector<Item> _items {};
132 std::vector<Row> _rows {};
133 bool _rowsDirty {
true };
188 const std::vector<Item> &
getItems(
void)
const noexcept;
220 const std::vector<Row> &
getRows(
void)
const noexcept;
Base class of every component: a piece of state attached to an entity, plus a "changed" flag.
std::size_t Identifier
The key under which an entity's components are stored. Systems and components refer to entities by th...
static constexpr Identifier InvalidIdentifier
"No entity": never the identifier of a real entity
State. Every class here is plain data attached to an entity.