five-on-it / apps/client/src/ui/minimap-data / isMapMarker
Function: isMapMarker()
isMapMarker<
E>(e): e is E & { kind: "vehicle" | "trailer" | "character" | "projectile" }
Defined in: apps/client/src/ui/minimap-data.ts:153
Whether an entity of the snapshots is a marker of the maps (the minimap's and the full map's dots): a vehicle, a trailer, a person, a projectile; never a light piece, a door, an item, a container, a terminal, a camera, a nail strip or a device, nor a parked car that dozes (a city parks a hundred: they would bury the streets in dots), which shows once woken.
Type Parameters
E
E extends Pick<EntitySnapshot, "kind" | "dormant">
Parameters
e
E
Returns
e is E & { kind: "vehicle" | "trailer" | "character" | "projectile" }