Skip to content

five-on-it / apps/client/src/renderer/hud-format / stealthShown

Function: stealthShown() ​

stealthShown<T>(stealth, at, watchers): T | undefined

Defined in: apps/client/src/renderer/hud-format.ts:279

The stealth the player is shown (the badge, the HUD's line): the server's word as it is while a guard or a camera sees the player or the alert is up; hidden and quiet, only within STEALTH_NEAR of a watcher (a guard, a camera), and nothing farther.

Type Parameters ​

T ​

T extends object

Parameters ​

stealth ​

T | undefined

at ​

{ x: number; z: number; } | undefined

watchers ​

readonly object[]

Returns ​

T | undefined