Skip to content

five-on-it / packages/world/src/level / GarageDef

Interface: GarageDef ​

Defined in: packages/world/src/level.ts:562

A garage of the level (GAME_DESIGN §5.5): a bay a car drives into through its door, its +z end, and stops in; the interaction prompt then offers what it does for its price ($, paid in cash): a respray (new paint, the car repaired, the Wanted level cleared unless the police see it) and storing the car (kept for the player in the room, taken out again on foot in any garage that stores). A building's walls around it are placements of their own: the garage is a behaviour on a door, not a mesh.

Properties ​

depth ​

depth: number

Defined in: packages/world/src/level.ts:578

The bay's depth from its door (m).


height ​

height: number

Defined in: packages/world/src/level.ts:576

The bay's height (m).


name ​

name: string

Defined in: packages/world/src/level.ts:564

The node's name in the editor.


respray? ​

optional respray?: number

Defined in: packages/world/src/level.ts:580

The price of a respray ($); absent where the garage does none.


store? ​

optional store?: number

Defined in: packages/world/src/level.ts:582

The price of storing a car ($); absent where the garage stores none.


width ​

width: number

Defined in: packages/world/src/level.ts:574

The bay's width across its door (m).


x ​

x: number

Defined in: packages/world/src/level.ts:566

The middle of the bay, on its floor (m).


y ​

y: number

Defined in: packages/world/src/level.ts:568

The floor (m).


yaw ​

yaw: number

Defined in: packages/world/src/level.ts:572

Which way its door faces (rad, 0 faces +z): a car drives in against it and out along it.


z ​

z: number

Defined in: packages/world/src/level.ts:570

The middle of the bay, on its floor (m).