@battle-racing/br-common-lib
Version:
Common library for all Battle Racing Repositorios
15 lines (14 loc) • 728 B
TypeScript
import type { GameTrack } from '../../gameTrack';
import type { PlaySoundOptions, ShowLightsColorParams, ShowLightsEffectParams } from '../../hardware';
import type { Response } from '../../response';
export interface SocketGameTrackEventsParams {
'game-track:init:response': Response<GameTrack>;
}
export interface SocketGameTrackEventParams {
'game-track:emergency:activate': undefined;
'game-track:emergency:deactivate': undefined;
'game-track:lights:showEffect': ShowLightsEffectParams;
'game-track:lights:showColor': ShowLightsColorParams;
'game-track:sound:play': PlaySoundOptions;
}
export type SocketGameTrackServerToClientEventsParams = SocketGameTrackEventsParams & SocketGameTrackEventParams;