Skip to content

five-on-it / packages/sim/src/garages / GarageOffer

Interface: GarageOffer ​

Defined in: packages/sim/src/garages.ts:77

What a garage offers a car at its wheel: the garage's index and the price of each service it does ($).

Properties ​

car ​

car: number

Defined in: packages/sim/src/garages.ts:81

The car standing in it.


garage ​

garage: number

Defined in: packages/sim/src/garages.ts:79

The garage's index in the level.


mods? ​

optional mods?: ModView[]

Defined in: packages/sim/src/garages.ts:87

The upgrades it fits the car (mods.ts), each with its price and whether the car has it; absent where it does no resprays.


respray? ​

optional respray?: number

Defined in: packages/sim/src/garages.ts:83

The price of a respray; absent where it does none.


store? ​

optional store?: number

Defined in: packages/sim/src/garages.ts:85

The price of storing the car; absent where it stores none, or the car is another player's.