Skip to main content

Inactive Struct

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

Declaration

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

Description

Tag component indicating that an entity is inactive.

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

When `setActive(false)` is called:

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

## Usage in Views

```cpp // Exclude inactive entities for (auto [entity, health] : gameWorld->view<HealthComponent>() .exclude<Inactive>()) { // Process only non-inactive entities } ```

See Also

Active

See Also

GameObject::setActive

Definition at line 35 of file Inactive.ixx.


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.