Added option to set rotation on teleport tiles

This commit is contained in:
2024-09-23 14:02:00 +02:00
parent 2f555636bc
commit 0f01a4ec7c
4 changed files with 35 additions and 28 deletions

View File

@ -170,7 +170,8 @@ function addZoneEventTile(tile: Phaser.Tilemaps.Tile) {
? {
toZoneId: zoneEditorStore.teleportSettings.toZoneId,
toPositionX: zoneEditorStore.teleportSettings.toPositionX,
toPositionY: zoneEditorStore.teleportSettings.toPositionY
toPositionY: zoneEditorStore.teleportSettings.toPositionY,
toRotation: zoneEditorStore.teleportSettings.toRotation
}
: undefined
}
@ -215,6 +216,7 @@ function save() {
}
gameStore.connection?.emit('gm:zone_editor:zone:update', data, (response: Zone) => {
console.log('zone updated')
zoneEditorStore.setZone(response)
})
}