// initializeTaxi.js import TaxiMapService from '../services/taxiMapService.js'; const initializeTaxi = async () => { try { console.log('Initializing Taxi game data...'); const taxiMapService = new TaxiMapService(); // Initialisiere Map-Typen console.log('Initializing taxi map types...'); await taxiMapService.initializeMapTypes(); // Prüfe ob bereits eine Standard-Map existiert const existingDefaultMap = await taxiMapService.getDefaultMap(); if (!existingDefaultMap) { console.log('Creating default taxi map...'); await taxiMapService.createDefaultMap(); } console.log('Taxi game initialization complete.'); } catch (error) { console.error('Error initializing Taxi game:', error); throw error; } }; export default initializeTaxi;