Skip to content

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

Interface: GarageDef ​

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

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:605

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


height ​

height: number

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

The bay's height (m).


name ​

name: string

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

The node's name in the editor.


respray? ​

optional respray?: number

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

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


store? ​

optional store?: number

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

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


width ​

width: number

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

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


x ​

x: number

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

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


y ​

y: number

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

The floor (m).


yaw ​

yaw: number

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

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:597

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