mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 11:45:34 +00:00
Kopiowanie składu do schowka; możliwość losowania wagonów pasażerskich
This commit is contained in:
@@ -20,12 +20,19 @@ export const Store: IStore = reactive({
|
||||
|
||||
stockList: [] as IStock[],
|
||||
cargoOptions: [] as any[][],
|
||||
|
||||
swapVehicles: false,
|
||||
|
||||
chosenStockListIndex: -1,
|
||||
// locoOptions: [] as ILocomotive[],
|
||||
// carOptions: [] as ICarWagon[],
|
||||
|
||||
vehiclePreviewSrc: ""
|
||||
})
|
||||
|
||||
export function isLocomotive(vehicle: ILocomotive | ICarWagon): vehicle is ILocomotive {
|
||||
return (vehicle as ILocomotive).power !== undefined;
|
||||
}
|
||||
|
||||
export const locoDataList = computed(() => Object.keys(vehicleDataJSON).reduce(
|
||||
(acc, vehicleTypeKey) => {
|
||||
|
||||
Reference in New Issue
Block a user