23 active_ = groups.begin() != groups.end();
26 bool active()
const {
return active_; }
30 if (!active_)
return 1.0f;
34 opacity *= std::clamp(group->opacity, 0.0f, 1.0f);
36 const auto* parent = registry_.tryGet<
Parent>(current);
Hierarchy components for parent-child relationships.
Central ECS registry for entity and component management.
f32 of(Entity entity) const
1 when no enabled group encloses entity (itself included).
GroupOpacityLookup(Registry ®istry)
Central container for all entities and components.
View< Components... > view()
Creates a view for iterating entities with specific components.
constexpr Entity INVALID_ENTITY
Invalid entity sentinel value.
float f32
32-bit floating point
Entity identifier with packed index + generation.
Fades an entity and everything under it, the way UINode.opacity fades a UI subtree.
Parent reference component.
Entity entity
Parent entity ID.