Skip to main content

Active Struct

Tag component indicating that an entity is active. More...

Declaration

struct helios::engine::mechanics::lifecycle::components::Active { ... }

Description

Tag component indicating that an entity is active.

This empty struct serves as a marker component for filtering active entities in views. It is automatically managed by `GameObject::setActive()`.

When `setActive(true)` is called:

  • The `Active` tag is added
  • The `Inactive` tag is removed
  • `onActivate()` is called on components that support it

## Usage in Views

```cpp // Query only active entities for (auto [entity, health, active] : gameWorld->view< HealthComponent, Active >().whereEnabled()) { // Process only active entities } ```

See Also

Inactive

See Also

GameObject::setActive

Definition at line 37 of file Active.ixx.


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.