Skip to content

five-on-it / packages/sim/src/mods / ModView

Interface: ModView ​

Defined in: packages/sim/src/mods.ts:131

An upgrade as a garage's panel shows it for a car: the offer, and whether the car has it already (or a full fill).

Extends ​

Properties ​

id ​

id: "runFlats" | "caltrops" | "oil" | "bullBar" | "plating" | "nitro"

Defined in: packages/sim/src/mods.ts:113

What it is: an upgrade of MOD, a fill of nitro, or a dispenser of a kind.

Inherited from ​

ModOffer.id


owned ​

owned: boolean

Defined in: packages/sim/src/mods.ts:133

Fitted already (of its class, or bought), or its charges full: nothing to buy.


price ​

price: number

Defined in: packages/sim/src/mods.ts:117

Its price in dollars.

Inherited from ​

ModOffer.price


service ​

service: number

Defined in: packages/sim/src/mods.ts:115

The input's service that buys it (a garage's respray is 1, storing 2).

Inherited from ​

ModOffer.service