29#include "guillaume/ecs/component.hpp"
30#include "guillaume/ecs/entity.hpp"
78 Variant _variant { Variant::Plain };
80 std::string _title {};
95 float _hoverTime { 0.0f };
96 float _leaveTime { 0.0f };
97 float _lastProgress { 0.0f };
98 bool _visible {
false };
99 std::optional<Viewport> _viewport {};
132 const std::string &
getText(
void)
const noexcept;
148 const std::string &
getTitle(
void)
const noexcept;
326 const std::optional<Viewport> &
getViewport(
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.