Skip to content

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

Variable: PhoneMessage ​

const PhoneMessage: ZodObject<{ apps: ZodArray<ZodObject<{ id: ZodString; name: ZodString; }, $strip>>; calls: ZodArray<ZodObject<{ contact: ZodString; dir: ZodEnum<{ declined: "declined"; in: "in"; missed: "missed"; out: "out"; unanswered: "unanswered"; }>; n: ZodNumber; name: ZodString; }, $strip>>; camera: ZodOptional<ZodObject<{ note: ZodOptional<ZodEnum<{ away: "away"; missed: "missed"; saved: "saved"; subject: "subject"; }>>; shots: ZodNumber; }, $strip>>; contacts: ZodArray<ZodObject<{ id: ZodString; name: ZodString; }, $strip>>; has: ZodBoolean; messages: ZodArray<ZodObject<{ choices: ZodArray<ZodObject<{ id: ZodString; text: ZodString; }, $strip>>; from: ZodString; n: ZodNumber; name: ZodString; note: ZodOptional<ZodString>; read: ZodBoolean; replied: ZodOptional<ZodString>; text: ZodString; }, $strip>>; screen: ZodOptional<ZodObject<{ app: ZodString; buttons: ZodArray<ZodObject<{ id: ZodString; text: ZodString; }, $strip>>; form: ZodArray<ZodObject<{ id: ZodString; kind: ZodEnum<{ code: "code"; number: "number"; }>; label: ZodString; length: ZodOptional<ZodNumber>; }, $strip>>; kind: ZodEnum<{ app: "app"; keypad: "keypad"; }>; name: ZodString; note: ZodOptional<ZodString>; noteKey: ZodOptional<ZodEnum<{ nothing: "nothing"; wrongCode: "wrongCode"; }>>; source: ZodEnum<{ phone: "phone"; world: "world"; }>; text: ZodString; title: ZodOptional<ZodString>; }, $strip>>; talk: ZodOptional<ZodObject<{ choices: ZodArray<ZodObject<{ id: ZodString; text: ZodString; }, $strip>>; dialogue: ZodString; goesOn: ZodBoolean; line: ZodOptional<ZodString>; note: ZodOptional<ZodString>; speaker: ZodOptional<ZodString>; state: ZodEnum<{ ringing: "ringing"; talking: "talking"; }>; via: ZodEnum<{ call: "call"; face: "face"; }>; with: ZodString; }, $strip>>; type: ZodLiteral<"phone">; unread: ZodNumber; waypoint: ZodOptional<ZodObject<{ label: ZodOptional<ZodString>; x: ZodNumber; z: ZodNumber; }, $strip>>; }, $strip>

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

One player's phone (GAME_DESIGN §7.5), sent to that player alone when it changes: whether they carry one, the unread messages, the contacts, the messages (oldest first, each with its reply choices while they may still be sent, the reply sent, a line the contact answered with), the installed apps, the call log, the conversation ringing or under way (a call, or face to face: who, the line said and by whom, the choices, whether a node without choices goes on or ends, a line a choice that did not work answered with), the app screen open (from the phone or from a terminal in the world; a keypad door's keypad, whose words the client has) and the waypoint on the minimap.