feat(db): typed wall storage, marker_seen and height backfill (#53)
This commit is contained in:
+2
-2
@@ -127,7 +127,7 @@ suite "player view (3.1: controlled always, LOS + not gm_only otherwise)":
|
||||
check other.tokens[1].includeVisionRadius == false
|
||||
|
||||
test "a scan of every player frame finds no wall-ish or GM-only key":
|
||||
let sc = sceneWith(@[WallRec(a: (700, 0), b: (700, 4096), flags: newJObject())])
|
||||
let sc = sceneWith(@[defaultWall((700.0, 0.0), (700.0, 4096.0))])
|
||||
let tokens = @[tok("mine", 400, 400, Pid), tok("near", 600, 400, 0),
|
||||
tok("secret", 500, 500, 0, gmOnly = true)]
|
||||
var known: Known
|
||||
@@ -195,7 +195,7 @@ suite "diff (6.4: only what changed)":
|
||||
var ctx = ctxOf(sceneWith(@[]), @[tok("mine", 400, 400, Pid)], @[Pid])
|
||||
var known: Known
|
||||
discard pass(ctx, known, resync = true)
|
||||
ctx.scene.walls = @[WallRec(a: (700, 0), b: (700, 4096), flags: newJObject())]
|
||||
ctx.scene.walls = @[defaultWall((700.0, 0.0), (700.0, 4096.0))]
|
||||
refreshAll(ctx)
|
||||
let frames = pass(ctx, known)
|
||||
check frames[0]["t"].getStr == "vision" # the polygons shrank
|
||||
|
||||
Reference in New Issue
Block a user