Adding a simple placeholder test

This commit is contained in:
2021-02-14 15:02:50 +01:00
parent 5688eabded
commit 75b7a15a53
4 changed files with 15 additions and 3 deletions

View File

@@ -51,6 +51,9 @@ export class GameRoom extends Room<GameState> {
}
getSeatedPlayers(): Player[] {
if (this.state === undefined) {
return [];
}
const players = Array.from<Player>(this.state.players.values());
return players.filter((p) => { return (p.playing) });
}