Several map editor improvements

This commit is contained in:
2024-11-05 21:28:12 +01:00
parent d81c889426
commit e1b39c42ec
6 changed files with 19 additions and 5 deletions

View File

@ -18,7 +18,6 @@ import { onUnmounted, ref } from 'vue'
import { useGameStore } from '@/stores/gameStore'
import { useZoneEditorStore } from '@/stores/zoneEditorStore'
import { type Zone } from '@/types'
// Components
import Toolbar from '@/components/gameMaster/zoneEditor/partials/Toolbar.vue'
import TileList from '@/components/gameMaster/zoneEditor/partials/TileList.vue'
@ -32,6 +31,7 @@ import ZoneEventTiles from '@/components/gameMaster/zoneEditor/zonePartials/Zone
const gameStore = useGameStore()
const zoneEditorStore = useZoneEditorStore()
console.log(zoneEditorStore.zone)
const tileMap = ref(null as Phaser.Tilemaps.Tilemap | null)
@ -64,6 +64,7 @@ function save() {
}
gameStore.connection?.emit('gm:zone_editor:zone:update', data, (response: Zone) => {
console.log(response.updatedAt)
zoneEditorStore.setZone(response)
})
}