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
banner?
optionalbanner?: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?
optionalbusted?:number
Defined in: apps/client/src/ui/Overlay.tsx:102
The fine of the arrest just made, while it is shown.
clash?
optionalclash?: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?
optionalclock?:string
Defined in: apps/client/src/ui/Overlay.tsx:110
The room clock as HH:MM, once the server said.
colliders?
optionalcolliders?:boolean
Defined in: apps/client/src/ui/Overlay.tsx:78
The collision wireframe is drawn over the level.
debug?
optionaldebug?: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?
optionaldisconnected?:boolean
Defined in: apps/client/src/ui/Overlay.tsx:90
The server closed the connection before the game could start.
fovMinimap?
optionalfovMinimap?:boolean
Defined in: apps/client/src/ui/Overlay.tsx:76
The NPC view cones on the minimap.
fovScene?
optionalfovScene?:boolean
Defined in: apps/client/src/ui/Overlay.tsx:74
The NPC view cones in the scene.
hosting?
optionalhosting?: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?
optionalinvincible?:boolean
Defined in: apps/client/src/ui/Overlay.tsx:86
The player's character shrugs off every hit, as the server says.
loading?
optionalloading?: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?
optionalmap?:MinimapData
Defined in: apps/client/src/ui/Overlay.tsx:70
The minimap's static layer, once the level is known.
markers?
optionalmarkers?:MinimapMarkers
Defined in: apps/client/src/ui/Overlay.tsx:72
The minimap's moving layer.
maxHealth?
optionalmaxHealth?: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?
optionalnightSight?:boolean
Defined in: apps/client/src/ui/Overlay.tsx:114
Whether the room's dark of night shortens sight (its weather's night).
pause?
optionalpause?: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?
optionalradio?:NowPlayingState
Defined in: apps/client/src/ui/Overlay.tsx:66
The radio's banner: what was tuned last (NowPlaying.tsx).
refused?
optionalrefused?:"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?
optionalrun?: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?
optionaldebug?:boolean
game
game:
string
id
id:
string
lives?
optionallives?:object
lives.count
count:
number
lives.left?
optionalleft?:number
lives.per
per:
"player"|"team"
mission
mission:
string
mode?
optionalmode?:"solo"|"coop"|"versus"
phase
phase:
"gathering"|"countdown"|"live"|"ended"
playtest?
optionalplaytest?:boolean
result?
optionalresult?:object
result.forfeit?
optionalforfeit?:boolean
result.outcome
outcome:
"complete"|"failed"|"abandoned"|"won"|"draw"
result.seats
seats:
object[]
result.seconds
seconds:
number
result.winner?
optionalwinner?:string
retries
retries:
object
retries.left
left:
number
retries.total
total:
number
seat?
optionalseat?:number
seats
seats:
object[]
startsIn?
optionalstartsIn?:number
teams?
optionalteams?:object[]
title
title:
string
type
type:
"run"
skip?
optionalskip?:SkipNotice
Defined in: apps/client/src/ui/Overlay.tsx:116
Time skipped last (a mission's skipTime): the notice shows a few seconds.
social?
optionalsocial?: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?
optionalstealth?: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?
optionalwanted?: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?
optionalwatching?: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?
optionalweather?:string
Defined in: apps/client/src/ui/Overlay.tsx:112
The weather's kind now, once the server said.