feat(db): typed wall storage, marker_seen and height backfill (#53)

This commit is contained in:
2026-11-19 22:03:11 +01:00
parent 6a443b4ec0
commit c1b1e9cf91
10 changed files with 551 additions and 45 deletions
+3 -1
View File
@@ -10,7 +10,9 @@ proc sceneWith(walls: seq[WallRec]): SceneRec =
extra: newJObject(), walls: walls)
proc wall(ax, ay, bx, by: float, kind = wkWall, open = false): WallRec =
WallRec(a: (ax, ay), b: (bx, by), kind: kind, open: open, flags: newJObject())
result = defaultWall((ax, ay), (bx, by))
result.kind = kind
result.open = open
proc tok(id: string, x, y: float, owner: int, visionFlag = true, gmOnly = false): TokenRec =
TokenRec(id: id, scene: 1, kind: "pc", descriptiveName: id, actualName: id, pos: (x, y),