UNPKG

@battle-racing/br-common-lib

Version:

Common library for all Battle Racing Repositorios

30 lines (29 loc) 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.kartHardwareStateSchema = void 0; const zod_1 = require("zod"); const Checkpoint_schema_1 = require("../checkpoint/Checkpoint.schema"); const flag_1 = require("./flag"); const rgb_1 = require("./rgb"); const screen_1 = require("./screen"); const speed_1 = require("./speed"); exports.kartHardwareStateSchema = zod_1.z.object({ speed: zod_1.z .object({ status: speed_1.speedStatusSchema, current: zod_1.z.number(), configured: zod_1.z.number(), }) .nullable(), rgb: rgb_1.rgbStatusSchema.nullable(), flag: zod_1.z .object({ status: flag_1.flagStatusSchema, checkpointType: Checkpoint_schema_1.checkpointTypeSchema.nullable(), checkpointAddress: zod_1.z.number().nullable(), }) .nullable(), screen: screen_1.screenStatusSchema.nullable(), isConnectedToServer: zod_1.z.boolean(), isSteeringWheelPressed: zod_1.z.boolean(), });