Modal widoku pociągu

This commit is contained in:
2022-07-11 18:04:07 +02:00
parent b14ba94abe
commit fb85352ce3
11 changed files with 209 additions and 71 deletions
+2
View File
@@ -1,7 +1,9 @@
import TrainStop from "./TrainStop";
export default interface ScheduledTrain {
trainId: string;
trainNo: number;
driverName: string;
driverId: number;
currentStationName: string;
+2
View File
@@ -1,6 +1,8 @@
import TrainStop from "@/scripts/interfaces/TrainStop";
export default interface Train {
trainId: string;
mass: number;
length: number;
speed: number;
+2
View File
@@ -159,6 +159,8 @@ export function getScheduledTrain(train: Train, trainStopIndex: number, stationN
return {
trainNo: train.trainNo,
trainId: train.trainId,
driverName: train.driverName,
driverId: train.driverId,
currentStationName: train.currentStationName,