

f700fd5de6
Implement multiplayer extension: 2-10 players FFA/Team/Multi-Team
Core engine:
- Add SeatIndex, TeamIndex, IsEliminated to PlayerState
- Add SeatOrder, GameMode to GameState with helpers: ActiveSeats(),
GetNextActiveSeat(), GetEnemyIds(), AreAllies()
- Add StartingZones to Board for per-seat placement validation
- Add BoardShape, PlayerCount to GameRules
- New BoardShapeGenerator: Rectangle (up to 4 seats) + Cross shapes
- N-player Initialize() overload; old 2-player overload delegates to it
- EndTurn uses GetNextActiveSeat() instead of hardcoded GetOpponentId()
- Attack finds target across all enemy players; EliminatePlayer() helper
allows multi-player elimination without immediate game over
- PlaceArchSpirit validates via StartingZones (legacy row fallback preserved)
- AbilitySystem.Own() uses AreAllies() for team-aware ownership checks
Database:
- GameSession: +player_count, +game_mode, +additional_players_json
- CustomLobby: +game_mode, +team_count, +additional_players_json
- EF migration: AddMultiplayerSlots (applied)
Handlers:
- GameCreateCustomLobbyHandler: honours MaxPlayers/GameMode/TeamCount from request
- GameJoinCustomLobbyHandler: multi-slot join up to MaxPlayers
- GameLobbyReadyHandler: N-player all-ready check; seats/team assignment by mode
- GameReadyHandler: builds N-player list from AdditionalPlayersJson
- GameHandlerBase.LoadActiveSessionAsync: recognises additional players
Client:
- Game.gd: get_opponents() returns all non-local players;
get_opponent() kept as backward-compat alias returning first opponent
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>
2026-03-25 23:57:36 -04:00
..
2026-03-01 22:55:45 -05:00
2026-02-28 08:40:05 -05:00
2026-03-10 20:36:36 -04:00
2026-03-05 06:15:41 -05:00
2026-03-02 10:49:49 -05:00
2026-03-02 10:49:49 -05:00
2026-03-25 20:31:27 -04:00
2026-02-28 08:40:05 -05:00
2026-03-25 12:14:14 -04:00
2026-03-19 09:45:24 -04:00
2026-03-25 23:57:36 -04:00
2026-03-07 10:28:32 -05:00
2026-03-23 09:32:43 -04:00
2026-03-23 09:32:43 -04:00
2026-03-18 09:38:17 -04:00
2026-03-09 13:34:17 -04:00
2026-03-13 23:31:10 -04:00
2026-03-15 14:06:55 -04:00
2026-03-25 14:00:06 -04:00
2026-02-28 08:40:05 -05:00
2026-03-23 06:50:00 -04:00
2026-03-06 22:14:43 -05:00
2026-03-17 13:30:39 -04:00
2026-03-19 10:13:42 -04:00