@battle-racing/br-common-lib
Version:
Common library for all Battle Racing Repositorios
17 lines (15 loc) • 648 B
text/typescript
import type { DamageEffectName } from '../../damage';
import type { Kart } from '../../kart';
import type { SocketInitRaspberryInput, SocketRegisterKartCheckpointInput } from '../inputs';
export interface SocketKartClientToServerEventsParams {
'kart:init': SocketInitRaspberryInput;
'kart:checkpoint': SocketRegisterKartCheckpointInput;
/** Activate the damage of a powerUp */
'kart:damage:sent': { macAddress: string; damageName: DamageEffectName };
/** The Kart received damage */
'kart:damage:received': { macAddress: string; damageName: DamageEffectName };
'kart:data:changed': {
macAddress: string;
kart: Kart;
};
}