Skip to content

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

Variable: WantedMessage ​

const WantedMessage: ZodObject<{ arrest: ZodOptional<ZodObject<{ fine: ZodNumber; }, $strip>>; heat: ZodNumber; seen: ZodBoolean; stars: ZodNumber; type: ZodLiteral<"wanted">; }, $strip>

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

One player's Wanted level, sent when it changes (the Heat at most twice a second): the stars (0 to 3), the Heat behind them, whether a police officer sees the player now, and once, when the police have just arrested the player, the fine they charged.