forked from noxious/client
Started refactoring zone editor
This commit is contained in:
18
src/components/gameMaster/zoneEditor/EventTiles.vue
Normal file
18
src/components/gameMaster/zoneEditor/EventTiles.vue
Normal file
@ -0,0 +1,18 @@
|
||||
<template>
|
||||
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
|
||||
import type { ZoneEventTile } from '@/types'
|
||||
import { tileToWorldX, tileToWorldY } from '@/composables/zoneComposable'
|
||||
|
||||
function getEventTileImageProps(tile: ZoneEventTile) {
|
||||
return {
|
||||
x: tileToWorldX(zoneTilemap as any, tile.positionX, tile.positionY),
|
||||
y: tileToWorldY(zoneTilemap as any, tile.positionX, tile.positionY),
|
||||
texture: tile.type
|
||||
}
|
||||
}
|
||||
</script>
|
Reference in New Issue
Block a user