Skip to content

five-on-it / packages/protocol/src/messages / PhoneCommand

Variable: PhoneCommand ​

const PhoneCommand: ZodObject<{ app: ZodOptional<ZodString>; button: ZodOptional<ZodString>; choice: ZodOptional<ZodString>; contact: ZodOptional<ZodString>; message: ZodOptional<ZodNumber>; op: ZodEnum<{ answer: "answer"; call: "call"; choose: "choose"; clearWaypoint: "clearWaypoint"; close: "close"; decline: "decline"; hangUp: "hangUp"; open: "open"; photo: "photo"; press: "press"; read: "read"; reply: "reply"; waypoint: "waypoint"; }>; type: ZodLiteral<"phone">; values: ZodOptional<ZodRecord<ZodString, ZodString>>; x: ZodOptional<ZodNumber>; z: ZodOptional<ZodNumber>; }, $strip>

Defined in: packages/protocol/src/messages.ts:1115

What a player does with their phone, or with a screen the world opened (a terminal's, a keypad's): a text frame the server checks like any input (the phone held, the app installed, the button on the screen open, the reply still open, the place in reach). Open an installed app, close the screen open, press one of its buttons with what its form holds (a few short fields), reply to message n with a choice, answer or decline the call ringing, hang up, pick a choice of the conversation ('' goes on from a line without choices, or ends it), call a contact, mark the messages read, set the waypoint at a point of the map or clear it, take a photo with the camera (where the character aims: the server frames it).