SpawnCommandHandlerRegistry.ixx File
Registry mapping spawn profile IDs to their command handlers. More...
Included Headers
#include <cassert>
#include <unordered_map>
#include <vector>
#include <helios.engine.core.data.SpawnProfileId>
#include <helios.engine.runtime.spawn.SpawnCommandHandler>
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... | |
Classes Index
| class | SpawnCommandHandlerRegistry |
|
Registry that maps SpawnProfileIds to their SpawnCommandHandlers. More... | |
Description
Registry mapping spawn profile IDs to their command handlers.
File Listing
The file content with the documentation metadata removed is:
17export namespace helios::engine::runtime::spawn {
37 class SpawnCommandHandlerRegistry {
54 SpawnCommandHandlerRegistry() = default;
65 const helios::engine::core::data::SpawnProfileId spawnProfileId,
66 helios::engine::runtime::spawn::SpawnCommandHandler& poolManager
68 if (registry_.contains(spawnProfileId)) {
72 registry_[spawnProfileId] = &poolManager;
84 [[nodiscard]] helios::engine::runtime::spawn::SpawnCommandHandler* get(
85 helios::engine::core::data::SpawnProfileId spawnProfileId) {
86 auto it = registry_.find(spawnProfileId);
88 if (it == registry_.end()) {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.