Skip to content

five-on-it / apps/client/src/ui/run-view / watchableSeats

Function: watchableSeats() ​

watchableSeats(run): number[]

Defined in: apps/client/src/ui/run-view.ts:132

The seats a player out of the run may watch: their team's, present, still in the run and sitting in the room (a client), but their own, in seat order; once nobody of their side is left (a free-for-all's player never has a teammate), anybody's who still is (their side being out, watching a rival tells it nothing); none when the player is not out (or has no seat).

Parameters ​

run ​

debug? ​

boolean = ...

game ​

string = ...

id ​

string = ...

lives? ​

{ count: number; left?: number; per: "player" | "team"; } = ...

lives.count ​

number = ...

lives.left? ​

number = ...

lives.per ​

"player" | "team" = ...

mission ​

string = ...

mode? ​

"solo" | "coop" | "versus" = ...

phase ​

"gathering" | "countdown" | "live" | "ended" = ...

playtest? ​

boolean = ...

result? ​

{ forfeit?: boolean; outcome: "complete" | "failed" | "abandoned" | "won" | "draw"; seats: object[]; seconds: number; winner?: string; } = ...

result.forfeit? ​

boolean = ...

result.outcome ​

"complete" | "failed" | "abandoned" | "won" | "draw" = ...

result.seats ​

object[] = ...

result.seconds ​

number = ...

result.winner? ​

string = ...

retries ​

{ left: number; total: number; } = ...

retries.left ​

number = ...

retries.total ​

number = ...

seat? ​

number = ...

seats ​

object[] = ...

startsIn? ​

number = ...

teams? ​

object[] = ...

title ​

string = ...

type ​

"run" = ...

Returns ​

number[]