forked from noxious/client
Moved map character network event logic into characters component, added playAnimation function to characterComposable, finished attack animation
This commit is contained in:
@ -27,7 +27,7 @@ export const useMapStore = defineStore('map', {
|
||||
addCharacter(character: MapCharacter) {
|
||||
this.characters.push(character)
|
||||
},
|
||||
updateCharacterProperty<K extends keyof MapCharacter>(characterId: UUID, property: K, value: MapCharacter[K]) {
|
||||
updateCharacterProperty<K extends keyof MapCharacter>(characterId: string, property: K, value: MapCharacter[K]) {
|
||||
const character = this.characters.find((char) => char.character.id === characterId)
|
||||
if (character) {
|
||||
character[property] = value
|
||||
|
Reference in New Issue
Block a user