Skip to content

five-on-it / packages/missions/src/schema / Query

Variable: Query ​

const Query: ZodUnion<readonly [ZodObject<{ players: ZodObject<{ caught: ZodOptional<ZodLiteral<true>>; group: ZodOptional<ZodString>; in: ZodOptional<ZodString>; near: ZodOptional<ZodObject<{ place: ZodString; radius: ZodNumber; }, $strict>>; tag: ZodOptional<ZodString>; team: ZodOptional<ZodString>; }, $strict>; }, $strict>, ZodObject<{ enemies: ZodObject<{ caught: ZodOptional<ZodLiteral<true>>; group: ZodOptional<ZodString>; in: ZodOptional<ZodString>; near: ZodOptional<ZodObject<{ place: ZodString; radius: ZodNumber; }, $strict>>; tag: ZodOptional<ZodString>; team: ZodOptional<ZodString>; }, $strict>; }, $strict>, ZodObject<{ vehicles: ZodObject<{ caught: ZodOptional<ZodLiteral<true>>; group: ZodOptional<ZodString>; in: ZodOptional<ZodString>; near: ZodOptional<ZodObject<{ place: ZodString; radius: ZodNumber; }, $strict>>; tag: ZodOptional<ZodString>; team: ZodOptional<ZodString>; }, $strict>; }, $strict>, ZodObject<{ items: ZodObject<{ caught: ZodOptional<ZodLiteral<true>>; group: ZodOptional<ZodString>; in: ZodOptional<ZodString>; near: ZodOptional<ZodObject<{ place: ZodString; radius: ZodNumber; }, $strict>>; tag: ZodOptional<ZodString>; team: ZodOptional<ZodString>; }, $strict>; }, $strict>]>

Defined in: packages/missions/src/schema.ts:598

A query over the world: the room's players, the mission's enemies still standing, its vehicles not wrecked, the items the player carries (by tag alone).