Skip to content

Let a viewer who isn't in game see only their circle - #9

Merged
mgilardi merged 1 commit into
mainfrom
offline-circle
Nov 11, 2026
Merged

mgilardi merged 1 commit into
mainfrom
offline-circle

Conversation

@mgilardi

Copy link
Copy Markdown
Contributor

Adds ReachService.sharesCircle(viewerHas, to) for Mapkeeper's web map (owner decision D54). A viewer who isn't in game sees only players who share a circle with them. World, world group and bypass don't count, and with no circles set up nobody is reached. Anything that fails answers false.

Tested: 42 unit tests pass, including the three new ones:

  • only the viewer's circle counts, not the same world and not bypass;
  • no circle, or no rules, means nobody;
  • only circle permissions are asked of the viewer.

Not tested: the call from Mapkeeper, which isn't built yet. Not released: this goes out with Mapkeeper.

🤖 Generated with Claude Code

Adds ReachService.sharesCircle for the web map (owner decision D54): only a
shared circle counts, not world, world group or bypass, and with no circles
nobody is reached. Unit tests only; Mapkeeper, which will call it, isn't
built yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mgilardi
mgilardi merged commit 414e7fe into main Nov 11, 2026
2 checks passed
@mgilardi
mgilardi deleted the offline-circle branch November 11, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant