Skip to content

five-on-it / packages/protocol/src/messages / parseStealth

Function: parseStealth() ​

parseStealth(text): { alert: "search" | "normal" | "alert" | "caution" | "suspicious"; type: "stealth"; visibility: "seen" | "hidden"; } | undefined

Defined in: packages/protocol/src/messages.ts:908

Parses a text frame as a player's stealth; undefined when it is not one.

Parameters ​

text ​

string

Returns ​

{ alert: "search" | "normal" | "alert" | "caution" | "suspicious"; type: "stealth"; visibility: "seen" | "hidden"; } | undefined