Creates an event registration object.
The record mapping event names to their payload types.
The specific event name.
The game state type.
The name of the event to listen for.
The listener function that will be invoked when the event is emitted.
Optional
The priority of the listener. Higher priority listeners are
The created event registration object.
Creates an event registration object.