Files
FFF_vtt_frozen/docs/adr/0006-wall-switches-presets-labels.md
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

1.8 KiB

A wall is a set of switches; kinds are presets and derived labels

A wall record carries independent switches — blocks_sight, blocks_movement, player_marker, the door settings door/open/secret/locked and a sight-only sight_dir — and the server reads those. wall, door, window and one_way are editor presets and GM-facing labels only; kind is derived by shape (window, then one_way, then door, then wall, else custom) and is never stored or accepted as input. We rejected a fixed kind enum as the record's behaviour and client-interpreted free flags because a named kind and the actual rules would drift, and because the set of useful barrier behaviours (railing, bush, pit edge, fixed window) is one switch set with different labels.

Status

accepted (supersedes any earlier kind-enum or terrain reading; see history §D)

Alternatives

  • A stored kind enum with per-kind code: rejected, every combination needs a new kind and the label becomes the authority.
  • Free-form flags interpreted by the client: rejected, the server must enforce sight and movement.
  • A terrain preset/kind for "blocks movement, not sight": dropped; that switch set is a fixed window.

Consequences

secret/locked are flags that never change the label, and a one-way door is labelled one_way. A preset expands server-side to switches and never implies thickness, position or height. The editor may show four presets plus checkboxes; two presets cannot drift from what the wall does because the presets are not stored. The switch set is closed in v1, so a new axis is a schema step (ADR-0010).

Tickets

#42 (switch model), #47 (window and direction), #48 (four presets, marker, label).

Spec

Current §1 (principle), §5.8, §6.1 (wall payloads), §7.4 (editor), §8.