cf5089ae50a7c46be7dbc2e425f821fd59ec40c8
After any game action, push a structured GameStateDelta instead of the full GameStateDto to both players and spectators. Full state is preserved for: initial connect (game.ready), reconnect/get_state, spectate ACK, and turn-timer expiry. Server: - GameMessages.cs: add GameStateDeltaPush, GameStateDelta, TileDelta, UnitDelta, PlayerStatsDelta, GameMetaDelta record types - GameEngine.cs: make ToCardDto internal (used by differ) - GameStateDiffer.cs: new file — ComputeDelta (viewer-specific) and ComputeSpectatorDelta; diffs tiles, field units, hands, discards, archs, player stats, and game meta - GameHandlerBase.cs: PushStateToPlayersAsync gains optional prevState param; when provided pushes delta, else falls back to full push - All 10 action handlers: pass prev state to PushStateToPlayersAsync Client: - Game.gd: _state_version tracking, _apply_delta, _merge_unit_delta, request_sync, game.state_delta push handler with auto-resync on gap - in_game_settings.gd + InGameSettings.tscn: Request Sync button 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>
Description
No description provided
53 MiB
Languages
C#
52.7%
HTML
24.9%
GDScript
21.2%
CSS
0.8%
Python
0.3%
Other
0.1%