Add Decagonal board shape, team reassignment, and multiplayer considerations
- BoardShapeGenerator: add MakeDecagonal() for 7-10 players (10-armed radial, 11x11 arena, 21x21 total); AutoShape now routes 7-10 to Decagonal - CustomLobby: add TeamAssignmentsJson (seat -> team override map) - GameMessages: add ReassignTeamRequest/Response, LobbyTeamAssignmentChangedPush, SeatTeams field on JoinCustomLobbyResponse - GameReassignTeamHandler: new game.custom.reassign_team handler (host-only); pushes team_reassigned to all participants including additional players - EF migration: AddTeamAssignmentsToLobby (applied to pg-forge-01) - Client CustomLobby.gd: seat_teams state, reassign_team() action, push handler - lobby_room_screen.gd: _rebuild_team_controls() renders host-only [<] Tx [>] cycle buttons per seat in team modes; _team_label() reads seat_teams overrides - OVERALL.md: add Considerations for Later (fog of war, asymmetric teams, ranked ELO) Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -206,6 +206,9 @@ public sealed record AcceptRuleSuggestionRequest(Guid LobbyId);
|
||||
/// <summary>Host rejects the guest's pending rule suggestion.</summary>
|
||||
public sealed record RejectRuleSuggestionRequest(Guid LobbyId);
|
||||
|
||||
/// <summary>Host-only: move a player seat to a different team.</summary>
|
||||
public sealed record ReassignTeamRequest(Guid LobbyId, int SeatIndex, int TeamIndex);
|
||||
|
||||
// ── Responses ─────────────────────────────────────────────────────────────────
|
||||
|
||||
public sealed record GameReadyResponse(
|
||||
@@ -273,7 +276,9 @@ public sealed record JoinCustomLobbyResponse(
|
||||
string GameMode,
|
||||
int TeamCount,
|
||||
bool IsAdditionalPlayer = false, // true for 3rd+ players (not host or first guest)
|
||||
IEnumerable<AdditionalLobbyPlayerViewDto>? AdditionalPlayers = null);
|
||||
IEnumerable<AdditionalLobbyPlayerViewDto>? AdditionalPlayers = null,
|
||||
/// <summary>Seat index → team index map. Null = default (seat % teamCount).</summary>
|
||||
Dictionary<int, int>? SeatTeams = null);
|
||||
|
||||
public sealed record LeaveCustomLobbyResponse(Guid LobbyId);
|
||||
|
||||
@@ -319,6 +324,8 @@ public sealed record SuggestRulesResponse(Guid LobbyId);
|
||||
public sealed record AcceptRuleSuggestionResponse(Guid LobbyId);
|
||||
public sealed record RejectRuleSuggestionResponse(Guid LobbyId);
|
||||
|
||||
public sealed record ReassignTeamResponse(Guid LobbyId, Dictionary<int, int> SeatTeams);
|
||||
|
||||
public sealed record ListActiveLobbiesResponse(
|
||||
IEnumerable<ActiveLobbyDto> Games,
|
||||
int TotalCount,
|
||||
@@ -453,6 +460,12 @@ public sealed record LobbyRuleSuggestionPush(
|
||||
/// <summary>Pushed to the guest when the host rejects their rule suggestion.</summary>
|
||||
public sealed record LobbyRuleSuggestionRejectedPush(Guid LobbyId);
|
||||
|
||||
/// <summary>
|
||||
/// Pushed to all lobby participants when the host changes a seat's team assignment.
|
||||
/// SeatTeams is the full seat → team map for all seats.
|
||||
/// </summary>
|
||||
public sealed record LobbyTeamAssignmentChangedPush(Guid LobbyId, Dictionary<int, int> SeatTeams);
|
||||
|
||||
/// <summary>
|
||||
/// Pushed to each viewer after any game action that changes state.
|
||||
/// Replaces the full <see cref="GameStateUpdatePush"/> for incremental updates.
|
||||
|
||||
Reference in New Issue
Block a user