LifecycleBuilder Class
Builder for lifecycle management and component activation timing. More...
Declaration
Public Constructors Index
| LifecycleBuilder (helios::engine::ecs::GameObject gameObject) | |
|
Constructs a LifecycleBuilder for the given GameObject. More... | |
Public Member Functions Index
| helios::engine::builder::gameObject::builders::configs::LifecycleConfig | lifecycle () |
|
Returns a configuration object for lifecycle settings. More... | |
Private Member Attributes Index
| helios::engine::ecs::GameObject | gameObject_ |
|
Non-owning pointer to the target GameObject. More... | |
Description
Builder for lifecycle management and component activation timing.
LifecycleBuilder provides configuration options for controlling when and how components become active on a GameObject. This is essential for gameplay patterns requiring delayed or staged component activation:
- **Spawn immunity:** Defer collision detection until entity is positioned
- **Staggered activation:** Enable behaviors progressively across wave spawns
- **Visual polish:** Delay rendering until spawn effects complete
## Usage
```cpp prototype.withLifecycle([](LifecycleBuilder& builder) { builder.lifecycle() .useDelayedComponentEnabler(); }); ```
- See Also
LifecycleConfig
- See Also
DelayedComponentEnabler
- See Also
DelayedComponentEnablerInitializer
Definition at line 38 of file LifecycleBuilder.ixx.
Public Constructors
LifecycleBuilder()
| inline explicit |
Constructs a LifecycleBuilder for the given GameObject.
- Parameters
-
<a href="/docs/helios/namespaces/helios/engine/builder/gameobject">gameObject</a> Non-owning pointer to the target entity.
Definition at line 52 of file LifecycleBuilder.ixx.
Public Member Functions
lifecycle()
| inline |
Returns a configuration object for lifecycle settings.
The returned LifecycleConfig allows configuring delayed component activation and other lifecycle behaviors.
- Returns
LifecycleConfig instance targeting the same GameObject.
Definition at line 62 of file LifecycleBuilder.ixx.
Private Member Attributes
gameObject_
|
Non-owning pointer to the target GameObject.
Definition at line 43 of file LifecycleBuilder.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.