This repository has been archived by the owner on Jun 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 150
/
vehicleOwned.ts
97 lines (87 loc) · 1.88 KB
/
vehicleOwned.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import { BaseVehicle } from './vehicleBase';
import VehicleExtra from './vehicleExtra';
import { VehicleState } from './vehicleState';
import VehicleTuning from './vehicleTuning';
/**
* Used to describe vehicle part damage.
*/
export type PartDamage = { bulletHoles?: number; damageLevel: string };
/**
* Used to describe vehicle damage to apply to a vehicle.
*
*
* @interface VehicleDamage
*/
export interface VehicleDamage {
/**
* What parts are damaged.
*
* @type {{ [part: string]: PartDamage }}
*
*/
parts?: { [part: string]: PartDamage };
/**
* What bumpers are damaged.
*
* @type {{ [part: string]: PartDamage }}
*
*/
bumpers?: { [part: string]: PartDamage };
/**
* What windows are damaged.
*
* @type {{ [part: string]: PartDamage }}
*
*/
windows?: { [part: string]: PartDamage };
/**
* What wheels are damaged.
*
* @type {Array<PartDamage>}
*
*/
wheels?: Array<PartDamage>;
/**
* What lights are damaged.
*
* @type {Array<PartDamage>}
*
*/
lights?: Array<PartDamage>;
}
/**
* Used to describe an owned vehicle.
*
*
* @interface OwnedVehicle
* @extends {BaseVehicle}
*/
export interface OwnedVehicle extends BaseVehicle {
/**
* Vehicle Tuning Interface
* @type {VehicleTuning}
*
*/
tuning?: Partial<VehicleTuning> | VehicleTuning | undefined;
/**
* Data that matches the alt.Vehicle API setters
*
* @type {Partial<VehicleState> | VehicleState}
*
*/
state?: Partial<VehicleState> | VehicleState;
/**
* Damage to store / apply on a vehicle
*
* @type {VehicleDamage}
*
*/
damage?: VehicleDamage;
/**
* Damage to store / apply on a vehicle
*
* @type {VehicleDamage}
*
*/
extras?: Array<VehicleExtra>;
}