TargetedCommandDispatcher Class
Abstract dispatcher interface for type-safe TargetedCommand handling. More...
Declaration
Derived Classes
| class | TypedTargetedCommandDispatcher<T> |
|
Type-safe dispatcher template for handling specific TargetedCommand types. More... | |
Public Destructor Index
| ~TargetedCommandDispatcher ()=default | |
|
Virtual destructor for proper cleanup of derived dispatchers. More... | |
Public Member Functions Index
| void | dispatch (helios::engine::ecs::GameObject gameObject, const TargetedCommand &command)=0 |
|
Dispatches a TargetedCommand for specialized handling. More... | |
Description
Abstract dispatcher interface for type-safe TargetedCommand handling.
TargetedCommandDispatcher enables the Visitor pattern for TargetedCommand processing. When registered with a CommandBuffer, the dispatcher receives commands of the appropriate type and can route them to specialized handlers (e.g., component systems, managers).
This decouples command execution from command definition, allowing commands to be processed by external systems without the command knowing about them.
- See Also
TypedTargetedCommandDispatcher for type-safe derived implementation
- See Also
CommandBuffer::addDispatcher for registration
Definition at line 30 of file TargetedCommandDispatcher.ixx.
Public Destructor
~TargetedCommandDispatcher()
| virtual default |
Virtual destructor for proper cleanup of derived dispatchers.
Definition at line 37 of file TargetedCommandDispatcher.ixx.
Public Member Functions
dispatch()
|
Dispatches a TargetedCommand for specialized handling.
- Parameters
-
gameObject The target GameObject.
command The command to dispatch.
Definition at line 45 of file TargetedCommandDispatcher.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.