Skip to content

five-on-it / apps/client/src/ui/Overlay / OverlayState

Interface: OverlayState ​

Defined in: apps/client/src/ui/Overlay.tsx:65

What the game loop publishes for the overlay.

Properties ​

optional banner?: BannerView

Defined in: apps/client/src/ui/Overlay.tsx:113

The banner of what just happened (died, a mission's end, a level reset), while it is shown.


busted? ​

optional busted?: number

Defined in: apps/client/src/ui/Overlay.tsx:109

The fine of the arrest just made, while it is shown.


clash? ​

optional clash?: VersionClash

Defined in: apps/client/src/ui/Overlay.tsx:103

The server is of another protocol: the two releases, and the game never starts.


clock? ​

optional clock?: string

Defined in: apps/client/src/ui/Overlay.tsx:119

The room clock as HH:MM, once the server said.


colliders? ​

optional colliders?: boolean

Defined in: apps/client/src/ui/Overlay.tsx:85

The collision wireframe is drawn over the level.


debug? ​

optional debug?: boolean

Defined in: apps/client/src/ui/Overlay.tsx:91

Whether the server honours the debug commands, as its welcome said: false greys the legend's chasers, Go to, the clock and the weather out under a line that says why; true, or unknown (before the welcome, or an older server's that says nothing), offers them.


disconnected? ​

optional disconnected?: boolean

Defined in: apps/client/src/ui/Overlay.tsx:97

The server closed the connection before the game could start.


fovMinimap? ​

optional fovMinimap?: boolean

Defined in: apps/client/src/ui/Overlay.tsx:81

The NPC view cones on the minimap.


fovScene? ​

optional fovScene?: boolean

Defined in: apps/client/src/ui/Overlay.tsx:79

The NPC view cones in the scene.


fullMap? ​

optional fullMap?: boolean

Defined in: apps/client/src/ui/Overlay.tsx:83

The full map is open (the map key, a click on the minimap, the phone's Map app).


hosting? ​

optional hosting?: string[]

Defined in: apps/client/src/ui/Overlay.tsx:105

Where friends on the network join the game this app hosts (192.168.1.23:7777), while it does.


hud ​

hud: HudState | undefined

Defined in: apps/client/src/ui/Overlay.tsx:67

The HUD numbers, or undefined until the game is connected.


hudVisible ​

hudVisible: boolean

Defined in: apps/client/src/ui/Overlay.tsx:73

The HUD block is shown (the H key and the HUD button toggle it).


invincible? ​

optional invincible?: boolean

Defined in: apps/client/src/ui/Overlay.tsx:93

The player's character shrugs off every hit, as the server says.


loading? ​

optional loading?: object

Defined in: apps/client/src/ui/Overlay.tsx:99

The level the welcome named, while it downloads: its bytes so far and in all (renderer/level-cache.ts).

received ​

received: number

total ​

total: number


map? ​

optional map?: MinimapData

Defined in: apps/client/src/ui/Overlay.tsx:75

The minimap's static layer, once the level is known.


markers? ​

optional markers?: MinimapMarkers

Defined in: apps/client/src/ui/Overlay.tsx:77

The minimap's moving layer.


maxHealth? ​

optional maxHealth?: number

Defined in: apps/client/src/ui/Overlay.tsx:95

The player's character's full health as the Player page last set it (a player's, 100, until then).


music ​

music: boolean

Defined in: apps/client/src/ui/Overlay.tsx:69

Music playing.


nightSight? ​

optional nightSight?: boolean

Defined in: apps/client/src/ui/Overlay.tsx:123

Whether the room's dark of night shortens sight (its weather's night).


pause? ​

optional pause?: object

Defined in: apps/client/src/ui/Overlay.tsx:127

The pause menu, while it is open: whether the room waits (frozen) and how many play in it.

frozen ​

frozen: boolean

players ​

players: number


police? ​

optional police?: PoliceView

Defined in: apps/client/src/ui/Overlay.tsx:111

The police's tells the HUD shows: the radio's lines of the last seconds, the drone or a camera on the player.


radio? ​

optional radio?: NowPlayingState

Defined in: apps/client/src/ui/Overlay.tsx:71

The radio's banner: what was tuned last (NowPlaying.tsx).


refused? ​

optional refused?: "full" | "unauthorized" | "kicked" | "noRoom" | "rooms" | "runs" | "restarting"

Defined in: apps/client/src/ui/Overlay.tsx:101

Why the room turned the page away (full, no such room, voted out, a join that ran out) or ended its game (the server restarting for maintenance), when it said: the HUD says it instead of its figures.


run? ​

optional run?: object

Defined in: apps/client/src/ui/Overlay.tsx:129

A run's room: the run as the server last said (its phase, its seats, its lives, its teams, its result).

debug? ​

optional debug?: boolean

game ​

game: string

id ​

id: string

lives? ​

optional lives?: object

lives.count ​

count: number

lives.left? ​

optional left?: number

lives.per ​

per: "player" | "team"

mission ​

mission: string

mode? ​

optional mode?: "solo" | "coop" | "versus"

phase ​

phase: "gathering" | "countdown" | "live" | "ended"

playtest? ​

optional playtest?: boolean

result? ​

optional result?: object

result.forfeit? ​

optional forfeit?: boolean

result.outcome ​

outcome: "complete" | "failed" | "abandoned" | "won" | "draw"

result.seats ​

seats: object[]

result.seconds ​

seconds: number

result.winner? ​

optional winner?: string

retries ​

retries: object

retries.left ​

left: number

retries.total ​

total: number

seat? ​

optional seat?: number

seats ​

seats: object[]

startsIn? ​

optional startsIn?: number

teams? ​

optional teams?: object[]

title ​

title: string

type ​

type: "run"


skip? ​

optional skip?: SkipNotice

Defined in: apps/client/src/ui/Overlay.tsx:125

Time skipped last (a mission's skipTime): the notice shows a few seconds.


social? ​

optional social?: SocialView

Defined in: apps/client/src/ui/Overlay.tsx:117

The social side: the room's roster and chat, friends, the party (renderer/social.ts).


stealth? ​

optional stealth?: Omit<{ alert: "search" | "normal" | "alert" | "caution" | "suspicious"; type: "stealth"; visibility: "seen" | "hidden"; }, "type">

Defined in: apps/client/src/ui/Overlay.tsx:115

The player's stealth (seen or hidden, the room's alert), where the room watches its players.


wanted? ​

optional wanted?: object

Defined in: apps/client/src/ui/Overlay.tsx:107

The player's Wanted level, once the server sent one.

heat ​

heat: number

seen ​

seen: boolean

stars ​

stars: number


watching? ​

optional watching?: number

Defined in: apps/client/src/ui/Overlay.tsx:131

A run's room: the seat the player watches while out of the run (none while in it).


weather? ​

optional weather?: string

Defined in: apps/client/src/ui/Overlay.tsx:121

The weather's kind now, once the server said.