roooooms 2
This commit is contained in:
@@ -45,8 +45,8 @@ export class Instance {
|
||||
getPlayers() {
|
||||
return this.#players.values().toArray();
|
||||
}
|
||||
playerIsHere(profile: Profile) {
|
||||
return Boolean(this.getPlayers().find(prof => prof.same(profile)));
|
||||
hasPlayer(profile: Profile) {
|
||||
return this.#players.values().some(prof => prof.getId() === profile.getId());
|
||||
}
|
||||
removePlayer(profile: Profile) {
|
||||
this.#players.delete(profile);
|
||||
|
||||
Reference in New Issue
Block a user