five-on-it / packages/protocol/src/messages / RunMessage
Variable: RunMessage
constRunMessage:ZodObject<{debug:ZodOptional<ZodBoolean>;game:ZodString;id:ZodString;lives:ZodOptional<ZodObject<{count:ZodNumber;left:ZodOptional<ZodNumber>;per:ZodEnum<{player:"player";team:"team"; }>; },$strip>>;mission:ZodString;mode:ZodOptional<ZodEnum<{coop:"coop";solo:"solo";versus:"versus"; }>>;phase:ZodEnum<{countdown:"countdown";ended:"ended";gathering:"gathering";live:"live"; }>;playtest:ZodOptional<ZodBoolean>;result:ZodOptional<ZodObject<{forfeit:ZodOptional<ZodBoolean>;outcome:ZodEnum<{abandoned:"abandoned";complete:"complete";draw:"draw";failed:"failed";won:"won"; }>;seats:ZodArray<ZodObject<{connectedS:ZodNumber;credit:ZodNumber;downs:ZodNumber;leftEarly:ZodBoolean;name:ZodString;place:ZodOptional<ZodNumber>;seat:ZodNumber;team:ZodString; },$strip>>;seconds:ZodNumber;winner:ZodOptional<ZodString>; },$strip>>;retries:ZodObject<{left:ZodNumber;total:ZodNumber; },$strip>;seat:ZodOptional<ZodNumber>;seats:ZodArray<ZodObject<{client:ZodOptional<ZodNumber>;down:ZodBoolean;lives:ZodOptional<ZodNumber>;name:ZodString;out:ZodOptional<ZodBoolean>;seat:ZodNumber;state:ZodEnum<{dropped:"dropped";left:"left";present:"present";waiting:"waiting"; }>;team:ZodString;tier:ZodOptional<ZodNumber>; },$strip>>;startsIn:ZodOptional<ZodNumber>;teams:ZodOptional<ZodArray<ZodObject<{eliminated:ZodBoolean;id:ZodString;lives:ZodOptional<ZodNumber>;name:ZodString;score:ZodNumber; },$strip>>>;title:ZodString;type:ZodLiteral<"run">; },$strip>
Defined in: packages/protocol/src/messages.ts:753
A run's room as one of its players sees it (TECHNICAL_SPECS §9.5), sent when it changes: the run, its game (where its page is), its mission and title, how it is played (solo, co-op, versus), its phase and the seconds before it starts (gathering: how long it still waits for its seats; counting down: the countdown's), the player's own seat, every seat (its name and team, whether its player is waiting to come, present, dropped and within its minute to come back, or gone; down; out of the run, watching a teammate; its lives left when they are per player; its client id in the room while it sits there, which the snapshots' characters are owned by; its player's Respect tier when the platform shows it), its teams with their scores (their lives left when they are per team, whether nobody of them is left), the team's lives and the retries left, whether it is a playtest, whether a debug command was honoured in it (debug: it pays no Respect, which its results say), and once it ended its result: complete, failed or abandoned, won by a team (by a forfeit) or a draw, how long it took, each seat's part (its place in a race between the players).