forked from noxious/server
aids
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user