Skip to content

five-on-it / packages/missions/src/schema / Place

Variable: Place ​

const Place: ZodObject<{ kind: ZodOptional<ZodEnum<{ extraction: "extraction"; roadblockSpot: "roadblockSpot"; safehouse: "safehouse"; sniperRoof: "sniperRoof"; swatStaging: "swatStaging"; }>>; name: ZodOptional<ZodString>; role: ZodOptional<ZodEnum<{ guards: "guards"; hospital: "hospital"; players: "players"; police: "police"; traffic: "traffic"; }>>; tags: ZodOptional<ZodArray<ZodString>>; x: ZodNumber; y: ZodOptional<ZodNumber>; yaw: ZodOptional<ZodNumber>; z: ZodNumber; }, $strict>

Defined in: packages/missions/src/schema.ts:131

A named point of the level (m, the game's frame): y is the ground's height there when absent, yaw faces +z when absent. A role makes it a spawn point of that role too (GAME_DESIGN §5.3): where the police cars or the ambient traffic come out, a mission's guards, a hospital where players come back (a building's anchor, named as a place). A kind makes it a place of the police's (POLICE_PLACE_KINDS: an extraction point, a safe house, a sniper's roof, a barricade's spot, SWAT's staging). A generated level's building places carry the building's OpenStreetMap-style tags and, in a themed district, its invented name.