02d469490b073f969426e7894abaeeebae9f0cc6
- SpectatorRegistryService singleton: ConcurrentDictionary<Guid, ImmutableHashSet<Guid>> tracking spectators per session. Static Instance for use in static base-class helpers. - GameEngine.ToDtoSpectator: delegates to ToDto(state, "") — both hands hidden. - GameHandlerBase.PushStateToPlayersAsync: extended to push hand-hidden state_update to all registered spectators via SpectatorRegistryService.Instance. - GameHandlerBase.FinalizeGameAsync: pushes game.over to spectators then calls RemoveSession to evict the entry from the registry. - GameSpectateHandler (game.spectate): validates session Active, registers spectator, returns current spectator-view state as ack. - GameStopSpectatingHandler (game.spectate.stop): unregisters the caller. - GameMessages.cs: SpectateRequest/Response, StopSpectatingRequest/Response. - ServiceRegistration.cs: register SpectatorRegistryService singleton + both handlers. 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%