mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-02 21:08:12 +00:00
chore: fetching & caching vehicles data information
This commit is contained in:
@@ -189,3 +189,27 @@ export interface CheckpointTrain {
|
||||
checkpointStop: TrainStop;
|
||||
train: Train;
|
||||
}
|
||||
|
||||
// Vehicles Data
|
||||
export interface VehiclesData {
|
||||
simulatorVersion: string;
|
||||
|
||||
vehicleList: any[][];
|
||||
|
||||
vehicleProps: VehicleProps[];
|
||||
}
|
||||
|
||||
export interface VehicleProps {
|
||||
type: string;
|
||||
speed: number;
|
||||
length: number;
|
||||
weight: number;
|
||||
cargoTypes?: VehicleCargo[];
|
||||
coldStart?: boolean;
|
||||
doubleManned?: boolean;
|
||||
}
|
||||
|
||||
export interface VehicleCargo {
|
||||
id: string;
|
||||
weight: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user