five-on-it / packages/protocol/src/cops / encodeCopCommand
Function: encodeCopCommand()
encodeCopCommand(
command):string
Defined in: packages/protocol/src/cops.ts:74
Serializes a cop's order as a text frame.
Parameters
command
at?
{ x: number; z: number; } = ...
at.x
number = ...
at.z
number = ...
order
"swat" | "roadblock" | "drone" | "cruiser" = ...
target?
number = ...
type
"cop" = ...
Returns
string