Skip to content

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

Interface: OverlayState ​

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

What the game loop publishes for the overlay.

Properties ​

optional banner?: BannerView

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

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:102

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


clash? ​

optional clash?: VersionClash

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

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:110

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


colliders? ​

optional colliders?: boolean

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

The collision wireframe is drawn over the level.


debug? ​

optional debug?: boolean

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

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:90

The server closed the connection before the game could start.


fovMinimap? ​

optional fovMinimap?: boolean

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

The NPC view cones on the minimap.


fovScene? ​

optional fovScene?: boolean

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

The NPC view cones in the scene.


hosting? ​

optional hosting?: string[]

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

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:62

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


hudVisible ​

hudVisible: boolean

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

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:86

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


loading? ​

optional loading?: object

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

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:70

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


markers? ​

optional markers?: MinimapMarkers

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

The minimap's moving layer.


maxHealth? ​

optional maxHealth?: number

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

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:64

Music playing.


nightSight? ​

optional nightSight?: boolean

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

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:118

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

frozen ​

frozen: boolean

players ​

players: number


radio? ​

optional radio?: NowPlayingState

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

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:94

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:120

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:116

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:108

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:106

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:100

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:122

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:112

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