Temp. fix for finding children in scene, character create bug fix, chat logic improvements, added image compression upon build

This commit is contained in:
2025-02-12 13:44:37 +01:00
parent beed1d6903
commit e6412d8a65
8 changed files with 541 additions and 110 deletions

View File

@ -6,7 +6,6 @@ export const useMapStore = defineStore('map', {
return {
mapId: '',
characters: [] as MapCharacter[],
characterLoaded: false
}
},
getters: {
@ -36,9 +35,6 @@ export const useMapStore = defineStore('map', {
removeCharacter(characterId: UUID) {
this.characters = this.characters.filter((char) => char.character.id !== characterId)
},
setCharacterLoaded(loaded: boolean) {
this.characterLoaded = loaded
},
updateCharacterPosition(data: { characterId: UUID; positionX: number; positionY: number; rotation: number; isMoving: boolean }) {
const character = this.characters.find((char) => char.character.id === data.characterId)
if (character) {
@ -51,7 +47,6 @@ export const useMapStore = defineStore('map', {
reset() {
this.mapId = ''
this.characters = []
this.characterLoaded = false
}
}
})