Skip to main content

ScheduledSpawnPlanCommandDispatcher Class

Dispatcher that routes ScheduledSpawnPlanCommands to the appropriate handler. More...

Declaration

class helios::engine::runtime::spawn::dispatcher::ScheduledSpawnPlanCommandDispatcher { ... }

Base class

classTypedWorldCommandDispatcher<T>

Type-safe dispatcher template for handling specific WorldCommand types. More...

Public Constructors Index

ScheduledSpawnPlanCommandDispatcher ()=default

Default constructor. More...

Protected Member Functions Index

voiddispatchTyped (helios::engine::runtime::world::GameWorld &gameWorld, const helios::engine::runtime::spawn::commands::ScheduledSpawnPlanCommand &command) noexcept override

Dispatches a ScheduledSpawnPlanCommand to the registered handler. More...

Description

Dispatcher that routes ScheduledSpawnPlanCommands to the appropriate handler.

ScheduledSpawnPlanCommandDispatcher is a typed command dispatcher that handles ScheduledSpawnPlanCommand instances. When a command is dispatched, it submits the command directly to the pool's registered SpawnCommandHandler.

This dispatcher bridges the SpawnScheduler output (ScheduledSpawnPlan) with the SpawnManager's command processing pipeline.

See Also

ScheduledSpawnPlanCommand

See Also

SpawnScheduler

See Also

SpawnManager

Definition at line 31 of file ScheduledSpawnPlanCommandDispatcher.ixx.

Public Constructors

ScheduledSpawnPlanCommandDispatcher()

helios::engine::runtime::spawn::dispatcher::ScheduledSpawnPlanCommandDispatcher::ScheduledSpawnPlanCommandDispatcher ()
default

Default constructor.

Definition at line 62 of file ScheduledSpawnPlanCommandDispatcher.ixx.

Protected Member Functions

dispatchTyped()

void helios::engine::runtime::spawn::dispatcher::ScheduledSpawnPlanCommandDispatcher::dispatchTyped (helios::engine::runtime::world::GameWorld & gameWorld, const helios::engine::runtime::spawn::commands::ScheduledSpawnPlanCommand & command)
inline noexcept protected virtual

Dispatches a ScheduledSpawnPlanCommand to the registered handler.

Looks up the SpawnCommandHandler for the command's profile ID and submits the command directly for deferred processing.

Parameters
gameWorld

The game world containing the pool.

command

The ScheduledSpawnPlanCommand to dispatch.

Definition at line 45 of file ScheduledSpawnPlanCommandDispatcher.ixx.

48 ) noexcept override {
49
50 if (auto* spawnCommandHandler = gameWorld.spawnCommandHandler(
51 command.spawnProfileId()
52 )) {
53 spawnCommandHandler->submit(command);
54 }
55 }

The documentation for this class was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.