Creates a new EventHandler for a specific game. Any events registered using this handler will only be triggered if they are relevant to this game ID.
The extension API.
The game ID.
Registers an event handler for the 'did-deploy' event that will only run if the deployment was for this handler's game ID.
The callback/handler to run.
Optional object to control the event.
The handler (for chaining calls).
Registers an event handler for the gamemode-activated
event that will only run if this handler's game is being activated.
The callback/handler to run.
Optional object to control the event.
The handler (for chaining calls).
Generated using TypeDoc
A handler class that can be used to register to Vortex events with less boilerplate and typed callbacks.
This class is intended only for game extensions.