@battle-racing/br-common-lib
Version:
Common library for all Battle Racing Repositorios
22 lines (21 loc) • 713 B
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;
};
}