DelayedComponentEnabler.ixx File
Component for scheduling delayed activation of other components. More...
Included Headers
#include <cassert>
#include <span>
#include <typeindex>
#include <memory>
#include <vector>
#include <helios.core.types>
#include <helios.engine.core.data.SpawnProfileId>
#include <helios.engine.core.data.ComponentTypeId>
#include <helios.engine.ecs.GameObject>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | mechanics |
|
High-level gameplay systems and components for game logic. More... | |
| namespace | lifecycle |
|
Lifecycle management for entity components. More... | |
| namespace | components |
|
Components for managing entity lifecycle states. More... | |
Classes Index
| class | DelayedComponentEnabler |
|
Component that manages delayed activation of other components. More... | |
| struct | DeferredComponent |
|
Internal structure tracking a deferred component. More... | |
Description
Component for scheduling delayed activation of other components.
File Listing
The file content with the documentation metadata removed is:
22export namespace helios::engine::mechanics::lifecycle::components {
44 class DelayedComponentEnabler {
58 helios::engine::core::data::ComponentTypeId componentTypeId;
71 DelayedComponentEnabler() = default;
78 DelayedComponentEnabler(const DelayedComponentEnabler& other)
81 DelayedComponentEnabler& operator=(const DelayedComponentEnabler&) = default;
82 DelayedComponentEnabler(DelayedComponentEnabler&&) noexcept = default;
83 DelayedComponentEnabler& operator=(DelayedComponentEnabler&&) noexcept = default;
90 std::span<DeferredComponent> deferredComponents() noexcept {
121 helios::engine::ecs::GameObject gameObject,
122 helios::engine::core::data::ComponentTypeId componentTypeId, const float delta) {
125 const bool hasCmp = gameObject.has(componentTypeId);
133 gameObject.disableComponent(componentTypeId);
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.