@battle-racing/br-common-lib
Version:
Common library for all Battle Racing Repositorios
16 lines (15 loc) • 939 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.diskSensorBallShooterModuleStatusSchema = exports.configDiskSensorBallShooterModuleOptionsSchema = exports.diskSensorStatusSchema = exports.diskSensorCommandSchema = void 0;
const zod_1 = require("zod");
const DiskSensor_const_1 = require("./DiskSensor.const");
exports.diskSensorCommandSchema = zod_1.z.enum(DiskSensor_const_1.DISK_SENSOR_COMMAND);
exports.diskSensorStatusSchema = zod_1.z.enum(DiskSensor_const_1.DISK_SENSOR_STATUS);
exports.configDiskSensorBallShooterModuleOptionsSchema = zod_1.z.object({
prepareVoltagePercentage: zod_1.z.number().min(0).max(100).optional(),
attackVoltagePercentage: zod_1.z.number().min(0).max(100).optional(),
waitTimeAfterHit: zod_1.z.number().min(1).max(25).optional(),
});
exports.diskSensorBallShooterModuleStatusSchema = zod_1.z.object({
diskSensorStatus: exports.diskSensorStatusSchema,
});