Skip to content

five-on-it / packages/protocol/src/cops / CopCommand

Variable: CopCommand ​

const CopCommand: ZodObject<{ at: ZodOptional<ZodObject<{ x: ZodNumber; z: ZodNumber; }, $strip>>; order: ZodEnum<{ cruiser: "cruiser"; drone: "drone"; roadblock: "roadblock"; swat: "swat"; }>; target: ZodOptional<ZodNumber>; type: ZodLiteral<"cop">; }, $strip>

Defined in: packages/protocol/src/cops.ts:64

A cop player's order: what, after which robber (their client id; the nearest the police know of when absent), or, the dispatcher's, at a point of the map.