ViewListener beta
Interface of @v12-engine/client
ts
export interface ViewListenerHow a game's view reacts to one of its events on the screen: a sound, the camera, a message. See GameView.on
Members
event
ts
event: EventKey<any>;The event the listener reacts to
run
ts
run(payload: any, client: GameClientApi): void;Reacts to the event's payload; gets the client to do something on the screen