feat(db): typed wall storage, marker_seen and height backfill (#53)
This commit is contained in:
+3
-1
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user