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:
+1
-1
@@ -82,7 +82,7 @@ test('logs: no key, session cookie or session hash reaches the log', async () =>
|
||||
assert.equal((await join(s.origin, wrongKey)).status, 401)
|
||||
const tile = await fetch(`${s.origin}/tiles/1/v1/0_0.png`)
|
||||
assert.equal(tile.status, 403)
|
||||
const mismatch = await rawWs(s.origin, { cookie: a2.cookie, proto: 2 })
|
||||
const mismatch = await rawWs(s.origin, { cookie: a2.cookie, proto: 1 })
|
||||
await mismatch.closed
|
||||
const g2 = await openAs(s.origin, gmKey1)
|
||||
g2.ws.sendText('this is not json')
|
||||
|
||||
Reference in New Issue
Block a user