five-on-it / packages/protocol/src/cops / encodeRoleCommand
Function: encodeRoleCommand()
encodeRoleCommand(
command):string
Defined in: packages/protocol/src/cops.ts:92
Serializes a role picked as a text frame.
Parameters
command
role
"none" | "driver" | "gunner" | "hacker" | "dispatcher" | "medic" = ...
type
"role" = ...
Returns
string