Files
FFF_vtt_frozen/docs/adr/0015-player-marker-one-wall-fact.md
T
SirStone 8aaf03be04 docs: add ADRs for the durable design decisions
22 ADRs: server-authoritative sight and single egress, per-recipient views/diffs, uniform
nack, opaque ids, 32 px tile unit, wall switches/presets, see-over, thick walls, open-door
gap, typed wall columns, proto 2, build order, zoom clamp, accepted status leak, player
marker, chunked explored, slow-client policy, session/key split, closing message, character
records, global lock, synchronous choice. Each links its tickets and its spec section.
2026-11-17 23:12:04 +01:00

31 lines
1.6 KiB
Markdown

# A player marker is the one wall fact a player ever receives
A wall with `player_marker` on that derives `window` sends a player, once any point of its visible
extent has entered that player's vision polygon, exactly one anchor point (integer px, the drawn
midpoint) and an opaque per-player marker id. It carries no type, kind, open/closed, direction,
label, thickness, height, wall id or switch. This is a deliberate, exact exception to "walls never
reach a player", because an invisible window is worse for play than a single point of disclosure,
and the point cannot be used to infer what the wall does.
## Status
accepted
## Alternatives
- Send the window's geometry or kind: rejected, that is wall data and reveals a barrier's shape.
- Send nothing: rejected, players would walk into invisible windows.
- Send a marker for every marked wall regardless of kind: rejected, turning the switch on for a
solid wall would then disclose it; the derived-kind gate makes a solid wall's switch inert.
## Consequences
The marker is per-player memory like explored: persisted in `marker_seen`, restored before the first
connection, never retracted by walking away, a door or lost sight, and retracted only when the GM
removes the wall, clears the switch, makes it not a window or moves its geometry. The GM never
receives `marker` frames. Frames diff by the opaque id, never the wall id, and an anchor is never
updated in place. Three fault classes and an oracle pin it.
## Tickets
#48 (marker decision), #49 (wire shape and storage).
## Spec
Current §3.1 (the one exception), §5.8, §6.1 (`marker`), §6.3, §8 (`marker_seen`), §10.3.