roooooms 2

This commit is contained in:
2025-09-06 22:22:36 -04:00
parent 03b751dda6
commit 2aa5352350
15 changed files with 473 additions and 1004 deletions

View File

@@ -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);