1
0
forked from noxious/server
This commit is contained in:
2024-09-09 20:41:59 +02:00
parent d2e1837e75
commit 839fec1c06
3 changed files with 10 additions and 8 deletions

View File

@ -12,6 +12,10 @@ class CharacterManager {
this.characters = [...this.characters, character]
}
public removeCharacter(character: ExtendedCharacter) {
this.characters = this.characters.filter(x => x.id !== character.id);
}
public getCharactersInZone(zone: Zone) {
return this.characters.filter(x => x.zoneId === zone.id);
}