feat: GM characters, reveals, who-sees-it and seen_by (#75)

Server: GM token frames gain the additive, GM-only seen_by:[player ids],
computed from each player's existing sight (PlayerVision.visibleTo) with
no extra polygon pass. Leakcheck BannedAlways bans seen_by; a seenBy
fault build is caught as exactly WALLDATA. proto stays 2 (6.2 additive).

Client: new cast slice parses character/character_gone/encountered frames
and seen_by; gmcast panel adds character create/rename/assign/remove,
reveal to one/all, encountered forget (grey entries only) and the
who-sees-it list (0/100 in M4). Mounted beside the #74 admin panel.

Docs: DESIGN 5.9/6.1/6.2/7.4 record the round-1 shape and the no-bump
call. Gates: devbox run test, client-test, e2e green; bench recorded.
This commit is contained in:
2026-11-21 01:04:10 +01:00
parent 429f023c62
commit 0323fbd2ae
12 changed files with 1234 additions and 16 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ const
MarkerIdLength = 12
MarkerIdAlphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-"
BannedAlways = ["walls", "wall", "wall_gone", "a", "b", "open", "kind", "controller", "gm_only",
"flags", "radius_own", "extra",
"flags", "radius_own", "extra", "seen_by",
# every wall field name (#54): geometry, switches, door settings, label
"thickness", "position", "height", "blocks_sight", "blocks_movement", "sight_dir",
"player_marker", "door", "secret", "locked", "label"]