Dodano wykrywanie składów realnych

This commit is contained in:
2022-08-11 01:14:00 +02:00
parent ccb5aa0818
commit 83c091a572
5 changed files with 71 additions and 43 deletions
+4 -1
View File
@@ -1,6 +1,6 @@
import { IStore } from './types';
import { defineStore } from 'pinia';
import { carDataList, isTrainPassenger, locoDataList, maxStockSpeed, totalLength, totalMass } from './utils/vehicleUtils';
import { carDataList, chosenRealStock, isTrainPassenger, locoDataList, maxStockSpeed, totalLength, totalMass } from './utils/vehicleUtils';
export const useStore = defineStore({
@@ -21,6 +21,8 @@ export const useStore = defineStore({
stockList: [],
cargoOptions: [],
readyStockList: {},
swapVehicles: false,
chosenStockListIndex: -1,
@@ -41,6 +43,7 @@ export const useStore = defineStore({
totalLength: (state) => totalLength(state),
maxStockSpeed: (state) => maxStockSpeed(state),
isTrainPassenger: (state) => isTrainPassenger(state),
chosenRealStock: (state) => chosenRealStock(state)
},
});