@battle-racing/br-common-lib
Version:
Common library for all Battle Racing Repositorios
15 lines (10 loc) • 482 B
text/typescript
import { z } from 'zod';
import { BALL_SENSOR_COMMAND, BALL_SENSOR_STATUS } from './BallSensor.const';
export const ballSensorCommandSchema = z.enum(BALL_SENSOR_COMMAND);
export const ballSensorStatusSchema = z.enum(BALL_SENSOR_STATUS);
export const configureBallSensorDiskThrowerModuleOptionsSchema = z.object({
waitTimeAfterHit: z.number().min(1).max(25),
});
export const ballSensorDiskThrowerModuleStatusSchema = z.object({
ballSensorStatus: ballSensorStatusSchema,
});