feat(base): Fixed logic for websockets and added GameStateEvent. Might've caused instability on other feature branches! #84

Merged
lq64 merged 3 commits from feat/implement-game-state-change into main 2025-11-26 11:26:09 +01:00
14 changed files with 202 additions and 134 deletions
Showing only changes of commit 404de18c91 - Show all commits

View File

@@ -66,13 +66,6 @@ class MainMenuController @Inject()(
game match {
case Some(g) =>
g.addUser(request.user)
if (g.getPlayers.size >= 2) {
for (player <- g.getPlayers) {
if (player._2.host) {
g.startGame(player._2.user)
}
}
}
Ok(Json.obj(
"status" -> "success",
"redirectUrl" -> routes.IngameController.game(g.id).url,