Skip to content

Commit

Permalink
Add visualization for password protected games on Games page
Browse files Browse the repository at this point in the history
  • Loading branch information
gereon77 committed Jun 24, 2024
1 parent 8d10d7a commit 07ae58b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agot-bg-game-server/src/common/EntireGame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ export default class EntireGame extends GameState<null, LobbyGameState | IngameG
const oldPlayerIds = this.entireGame.ingameGameState?.oldPlayerIds ?? [];
const timeoutPlayerIds = this.entireGame.ingameGameState?.timeoutPlayerIds ?? [];
const replacerIds = this.entireGame.ingameGameState?.replacerIds ?? [];
const isPasswordProteced = this.entireGame.lobbyGameState?.password ? this.entireGame.lobbyGameState.password.length > 0 : false;

return {
turn,
Expand All @@ -632,6 +633,7 @@ export default class EntireGame extends GameState<null, LobbyGameState | IngameG
oldPlayerIds,
timeoutPlayerIds,
replacerIds,
isPasswordProteced,
publicChatRoomId: this.publicChatRoomId
};
}
Expand Down

0 comments on commit 07ae58b

Please sign in to comment.