SpawnCommandDispatcher Class
Dispatcher that routes SpawnCommands to the appropriate handler. More...
Declaration
Base class
| class | TypedWorldCommandDispatcher<T> |
|
Type-safe dispatcher template for handling specific WorldCommand types. More... | |
Public Constructors Index
| SpawnCommandDispatcher ()=default | |
Protected Member Functions Index
| void | dispatchTyped (helios::engine::runtime::world::GameWorld &gameWorld, const helios::engine::runtime::spawn::commands::SpawnCommand &command) noexcept override |
|
Dispatches a SpawnCommand to the registered handler. More... | |
Description
Dispatcher that routes SpawnCommands to the appropriate handler.
SpawnCommandDispatcher is a typed command dispatcher that handles SpawnCommand instances. When a SpawnCommand is dispatched, it submits the command directly to the pool's registered SpawnCommandHandler.
This enables the command-based spawn architecture where the GameObjectSpawnSystem emits SpawnCommands that are later processed by the SpawnManager during the manager flush phase.
- See Also
SpawnCommand
- See Also
- See Also
Definition at line 33 of file SpawnCommandDispatcher.ixx.
Public Constructors
SpawnCommandDispatcher()
| default |
Definition at line 62 of file SpawnCommandDispatcher.ixx.
Protected Member Functions
dispatchTyped()
| inline noexcept protected virtual |
Dispatches a SpawnCommand 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 SpawnCommand to dispatch.
Definition at line 47 of file SpawnCommandDispatcher.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.