Creates AcCmEventDispatcher object.
Add a listener to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Fire an event type.
The event that gets fired.
Check if listener is added to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Remove a listener from an event type.
The type of the listener that gets removed.
The listener function that gets removed.
Type-safe event dispatcher implementation.
Provides a robust event system that allows objects to emit and listen to events with full TypeScript type safety. Supports both typed event maps and dynamic events.
Example