DistributedSpawnPlacer.ixx File
Spawn placer that distributes entities across predefined locations. More...
Included Headers
#include <cassert>
#include <cmath>
#include <algorithm>
#include <helios.engine.runtime.world.UpdateContext>
#include <helios.engine.ecs.EntityHandle>
#include <helios.math>
#include <helios.util.Random>
#include <helios.engine.runtime.spawn.behavior.SpawnPlacer>
#include <helios.engine.runtime.spawn.SpawnContext>
#include <helios.engine.runtime.spawn.SpawnPlanCursor>
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 | placements |
|
Concrete SpawnPlacer implementations. More... | |
Classes Index
| class | DistributedSpawnPlacer<N> |
|
Spawn placer that assigns entities to predefined spawn points. More... | |
Description
Spawn placer that distributes entities across predefined locations.
File Listing
The file content with the documentation metadata removed is:
23export namespace helios::engine::runtime::spawn::behavior::placements {
66 class DistributedSpawnPlacer final : public SpawnPlacer {
86 explicit DistributedSpawnPlacer(Args&& ...args) : locations_({std::forward<Args>(args)... }) {}
103 const helios::engine::ecs::EntityHandle& entityHandle,
104 const helios::math::aabbf& gameObjectBounds,
105 const helios::math::aabbf& environmentBounds,
106 const SpawnPlanCursor& cursor,
107 const SpawnContext& spawnContext
110 const size_t bin = N * (cursor.position/static_cast<float>(cursor.spawnCount));
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.