Marks every player with which role they play in viewer's own current view (see playerView.ts's roleFor) -
the local-play counterpart to redactGameState.ts's applyPlayerView, which does the same thing for a remote
viewer's own redacted clone. Local play never redacts data, so this mutates the real tree directly, the same
way updatePlayer.ts already mutates a player's own outline/box-shadow style. Only ever changes a className,
never touches board/fleet data.
viewer === null means nobody is "own" (robots-only/watch - there is no human playing) - every player gets
role-summary unconditionally.
Marks every player with which role they play in
viewer's own current view (see playerView.ts's roleFor) - the local-play counterpart to redactGameState.ts's applyPlayerView, which does the same thing for a remote viewer's own redacted clone. Local play never redacts data, so this mutates the real tree directly, the same way updatePlayer.ts already mutates a player's own outline/box-shadow style. Only ever changes a className, never touches board/fleet data.viewer === nullmeans nobody is "own" (robots-only/watch - there is no human playing) - every player gets role-summary unconditionally.