feat(walls): proto 2 typed wall record, inert geometry, derived kind (#54)

wall.add/wall.update take thickness, position, height and the eight raw
switches; kind is output-only and the GM wall frames echo the full typed
record. Geometry is stored but inert (0/full/centre behaviour), and the
legacy kind/open wire adapter is gone. proto is bumped to 2 with the
harness default, and BannedAlways gains every wall field name with a
WALLDATA positive control.

Tests: schema-7 migrated scene vs the same walls authored via raw switches
gives byte-identical player frames, refusals and per-tile statuses.
Nim 382 / Node 113 green.
This commit is contained in:
2026-11-19 22:21:47 +01:00
parent c1b1e9cf91
commit 77fa2dfe4c
23 changed files with 852 additions and 318 deletions
+6 -6
View File
@@ -107,16 +107,16 @@ async function probe(ctx) {
}
const farA = [
{ a: [3000, 1000], b: [3000, 3000], kind: 'wall' },
{ a: [3200, 1200], b: [3400, 2600], kind: 'door', open: false },
{ a: [3000, 1000], b: [3000, 3000] },
{ a: [3200, 1200], b: [3400, 2600], door: true, open: false },
]
const farB = [
{ a: [3050, 2400], b: [3600, 2400], kind: 'wall' },
{ a: [3100, 1500], b: [3100, 1900], kind: 'door', open: true },
{ a: [3800, 1000], b: [3900, 3900], kind: 'wall' },
{ a: [3050, 2400], b: [3600, 2400] },
{ a: [3100, 1500], b: [3100, 1900], door: true, open: true },
{ a: [3800, 1000], b: [3900, 3900] },
]
// Inside the bound relative to START: 150 px east.
const nearExtra = [{ a: [1150, 1900], b: [1150, 2100], kind: 'wall' }]
const nearExtra = [{ a: [1150, 1900], b: [1150, 2100] }]
test('probing over WS: walls beyond cap + radius change no reply', async () => {
fs.mkdirSync(path.join(projectRoot, 'results'), { recursive: true })