feat: Enhance game and lobby components with improved state management and user notifications

This commit is contained in:
2025-12-14 15:08:13 +01:00
parent 683ad58efe
commit e5267e0e92
2 changed files with 5 additions and 1 deletions

View File

@@ -74,6 +74,10 @@ class UserSession(val user: User, val host: Boolean, val gameLobby: GameLobby) e
} }
case "ReturnToLobby" => case "ReturnToLobby" =>
gameLobby.returnToLobby(this) gameLobby.returnToLobby(this)
case "LeaveGame" =>
gameLobby.leaveGame(user.id, false)
case _ =>
println("Unknown event type: " + eventType + " with data: " + data)
} }
} }