1
0
forked from noxious/client

npm run format

This commit is contained in:
Dennis Postma 2025-02-05 15:19:13 +01:00
parent 7ff1de4018
commit fdbc101f96
4 changed files with 17 additions and 16 deletions

View File

@ -72,8 +72,9 @@ function erase(pointer: Phaser.Input.Pointer, map: MapT) {
if (!existingEventTile) return if (!existingEventTile) return
if (mapEditor.drawMode.value !== existingEventTile.type.toLowerCase()) { if (mapEditor.drawMode.value !== existingEventTile.type.toLowerCase()) {
if (mapEditor.drawMode.value === 'blocking tile' && existingEventTile.type === MapEventTileType.BLOCK) null //skip this case if (mapEditor.drawMode.value === 'blocking tile' && existingEventTile.type === MapEventTileType.BLOCK)
else return; null //skip this case
else return
} }
// Remove existing event tile // Remove existing event tile

View File

@ -11,10 +11,10 @@ import SelectedPlacedMapObjectComponent from '@/components/gameMaster/mapEditor/
import { useMapEditorComposable } from '@/composables/useMapEditorComposable' import { useMapEditorComposable } from '@/composables/useMapEditorComposable'
import { getTile } from '@/services/mapService' import { getTile } from '@/services/mapService'
import { useScene } from 'phavuer' import { useScene } from 'phavuer'
import { computed } from 'vue'
import Tilemap = Phaser.Tilemaps.Tilemap import Tilemap = Phaser.Tilemaps.Tilemap
import TilemapLayer = Phaser.Tilemaps.TilemapLayer import TilemapLayer = Phaser.Tilemaps.TilemapLayer
import { computed } from 'vue'
const scene = useScene() const scene = useScene()
const mapEditor = useMapEditorComposable() const mapEditor = useMapEditorComposable()

View File

@ -11,7 +11,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import type { PlacedMapObject, Map as MapT } from '@/application/types' import type { Map as MapT, PlacedMapObject } from '@/application/types'
const props = defineProps<{ const props = defineProps<{
placedMapObject: PlacedMapObject placedMapObject: PlacedMapObject