Lobby: include HostUserId in GameStateDto and let client derive host status; update tests
Some checks failed
Build / build (pull_request) Failing after 1m0s

This commit is contained in:
Tim Krampitz
2026-10-03 22:29:33 +02:00
parent fa999da741
commit 2d0687a083
5 changed files with 27 additions and 3 deletions

View File

@@ -6,6 +6,8 @@ public class GameStateDto
public string LobbyCode { get; set; } = string.Empty;
public string Status { get; set; } = string.Empty;
public List<PlayerInfoDto> Players { get; set; } = [];
// Host user id to let clients determine whether the current user is the host
public int HostUserId { get; set; }
public int CurrentRound { get; set; }
public int RoundTimeRemaining { get; set; }
}