mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 19:48:11 +00:00
Dodano wykrywanie składów realnych
This commit is contained in:
+4
-1
@@ -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)
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user