forked from noxious/client
Typo
This commit is contained in:
parent
8355c83dc8
commit
1c2e642fe3
@ -5,12 +5,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onUnmounted, onMounted, onBeforeMount } from 'vue'
|
import { ref, onUnmounted } from 'vue'
|
||||||
import { useScene } from 'phavuer'
|
import { useScene } from 'phavuer'
|
||||||
import { useGameStore } from '@/stores/gameStore'
|
import { useGameStore } from '@/stores/gameStore'
|
||||||
import { useZoneStore } from '@/stores/zoneStore'
|
import { useZoneStore } from '@/stores/zoneStore'
|
||||||
import { loadZoneTilesIntoScene } from '@/composables/zoneComposable'
|
import { loadZoneTilesIntoScene } from '@/composables/zoneComposable'
|
||||||
import type { Zone as ZoneT, ZoneCharacter, zoneLoadData } from '@/application/types'
|
import type { ZoneCharacter, zoneLoadData } from '@/application/types'
|
||||||
import ZoneTiles from '@/components/game/zone/ZoneTiles.vue'
|
import ZoneTiles from '@/components/game/zone/ZoneTiles.vue'
|
||||||
import ZoneObjects from '@/components/game/zone/ZoneObjects.vue'
|
import ZoneObjects from '@/components/game/zone/ZoneObjects.vue'
|
||||||
import Characters from '@/components/game/zone/Characters.vue'
|
import Characters from '@/components/game/zone/Characters.vue'
|
||||||
@ -31,7 +31,7 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
// Event listeners
|
// Event listeners
|
||||||
gameStore.connection!.on('zone:character:teleport', async (data: zoneLoadData) => {
|
gameStore.connection!.on('zone:character:teleport', async (data: zoneLoadData) => {
|
||||||
await loadZoneTilesIntoScene(data.zone, scene)
|
await loadZoneTilesIntoScene(data.zone.id, scene)
|
||||||
zoneStore.setZone(data.zone)
|
zoneStore.setZone(data.zone)
|
||||||
zoneStore.setCharacters(data.characters)
|
zoneStore.setCharacters(data.characters)
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user