Walls r1: player markers — emission, opaque ids, storage, resync #59
Notifications
Due Date
No due date set.
Blocks
Depends on
#60 Walls r1: marker retraction, re-earn and marker fault classes
SirStone/FFF_vtt_frozen
#57 Walls r1: windows — opening and fixed forms, see-through barrier
SirStone/FFF_vtt_frozen
#58 Walls r1: one-way sight — per-viewer filter + ONEWAY fault
SirStone/FFF_vtt_frozen
Reference: SirStone/FFF_vtt_frozen#59
Reference in New Issue
Block a user
Part of #52
Goal
a marker is emitted only for a wall that is both
player_marker:trueand derives window; anchor = drawn midpoint (integer px); it qualifies once any point of the visible extent enters the player's polygon. marker {full,set,del} after explored on connect/resync;marker_seenper player/wall with a fresh opaque 12-char id; loaded before first connection; survives restart; never sent to the GM or another player.Acceptance criteria
marker_seenrow present per player/wall.markerallowed type + independent visible-extent oracle with positive control.User stories covered
9, 10, 39, 51, 52, 54, 55, 56, 58, 59, 60, 66, 68, 69
Proven at
Notes
Implemented on
maininedd4437(pushed to origin/main).server/markers.nimgates onplayer_marker:true+ derivedwindowand the player's own vision polygon (segment endpoint inside or edge crossing; thickness inert this round). Anchor = drawn midpoint, rounded once. Per-player opaque 12-char id minted fresh, persisted inmarker_seenin the same derived-memory transaction as explored, loaded at startup before the first connection.PlayerViewcarries markers;marker {full,set:[{id,pos}],del}is sent only to the owning player, full set afterexploredon connect/resync, diffs afterwards. GM branch never emits it; no wall id/field in the frame.tools/markers.test.mjs(window preset vs switch off vs solid wall, exact anchor/count, any-part qualification with midpoint outside the radius, walk-away/door/lost sight, full-after-explored, per-player privacy, GM none); leak checker now allowsmarkerand has an independent visible-extent oracle with a positive control (marked window in thetools/leak.mjsscenario); restart fixture carries a marked window and asserts identical marker sets andmarker_seenrows across SIGTERM/SIGKILL; protocol/tviews pin the 16th message and its order.Suites on a clean tree:
nimble test -yall passed (389[OK]across 22 test binaries);node --test --test-concurrency=1 tools/*.test.mjs131/131 passed.Out of scope per the ticket and left for #60: retraction (remove/switch off/no-longer-window/geometry move), re-earn with a fresh id, and the
MARKER_EARLY/MARKER_EXTRA/MARKER_OFFfault classes. Note:wall.remove's DB cascade dropsmarker_seenrows, so a marker for a removed wall disappears on restart; that retraction rule is #60.