EmitterInitializer.ixx File
Initializer that configures spawned entities based on emitter state. More...
Included Headers
#include <cassert>
#include <helios.engine.modules.physics.motion.components.SteeringComponent>
#include <helios.engine.modules.physics.motion.components.DirectionComponent>
#include <helios.engine.ecs.GameObject>
#include <helios.engine.modules.physics.motion.components.Move2DComponent>
#include <helios.engine.runtime.spawn.types.SpawnContext>
#include <helios.engine.runtime.spawn.types.SpawnPlanCursor>
#include <helios.engine.runtime.spawn.behavior.SpawnInitializer>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | runtime |
|
Runtime infrastructure for game execution and lifecycle orchestration. More... | |
| namespace | spawn |
|
Entity spawning infrastructure for the helios engine. More... | |
| namespace | behavior |
|
Spawn behavior strategies for positioning and initializing entities. More... | |
| namespace | initializers |
|
Concrete SpawnInitializer implementations. More... | |
Classes Index
| class | EmitterInitializer |
|
Initializer that configures spawned entities based on emitter state. More... | |
Description
Initializer that configures spawned entities based on emitter state.
File Listing
The file content with the documentation metadata removed is:
20using namespace helios::engine::runtime::spawn::types;
21export namespace helios::engine::runtime::spawn::behavior::initializers {
40 class EmitterInitializer final : public SpawnInitializer {
53 void initialize(
54 helios::engine::ecs::GameObject gameObject,
55 const SpawnPlanCursor& cursor,
56 const SpawnContext& spawnContext
59 const auto& emitterContext = spawnContext.emitterContext;
65 if (auto* m2c = gameObject.get<helios::engine::modules::physics::motion::components::Move2DComponent>()) {
69 if (auto* dc = gameObject.get<helios::engine::modules::physics::motion::components::DirectionComponent>()) {
73 if (auto* hc = gameObject.get<helios::engine::modules::physics::motion::components::SteeringComponent>()) {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.