UNPKG

@battle-racing/br-common-lib

Version:

Common library for all Battle Racing Repositorios

30 lines (29 loc) 1.13 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_schema_1 = require("./flag/Flag.schema"); const RGB_schema_1 = require("./rgb/RGB.schema"); const Screen_schema_1 = require("./screen/Screen.schema"); const Speed_schema_1 = require("./speed/Speed.schema"); exports.kartHardwareStateSchema = zod_1.z.object({ speed: zod_1.z .object({ status: Speed_schema_1.speedStatusSchema, current: zod_1.z.number(), configured: zod_1.z.number(), }) .nullable(), rgb: RGB_schema_1.rgbStatusSchema.nullable(), flag: zod_1.z .object({ status: Flag_schema_1.flagStatusSchema, checkpointType: Checkpoint_schema_1.checkpointTypeSchema.nullable(), checkpointAddress: zod_1.z.number().nullable(), }) .nullable(), screen: Screen_schema_1.screenStatusSchema.nullable(), isConnectedToServer: zod_1.z.boolean(), isSteeringWheelPressed: zod_1.z.boolean(), });