This commit is contained in:
2025-11-09 15:41:19 +00:00
parent 5a40eac4e2
commit 6f3632d495
4 changed files with 231 additions and 261 deletions
+1 -9
View File
@@ -253,18 +253,10 @@ drawInspectWalls w = concat $ do
)
drawInspectWall :: World -> Wall -> Picture
drawInspectWall _ wl =
setLayer DebugLayer $
color rose (thickLine 3 [a, b])
-- <> foldMap (drawDoorPaths w) (wl ^? wlStructure . wsDoor)
drawInspectWall _ wl = setLayer DebugLayer $ color rose (thickLine 3 [a, b])
where
(a, b) = _wlLine wl
--drawDoorPaths :: World -> Int -> Picture
--drawDoorPaths w drid = concat $ do
-- paths <- w ^? cWorld . lWorld . doors . ix drid . drObstructs
-- return $ foldMap' (drawPathEdge . (^. penPathEdge)) paths
drawPathEdge :: Point2 -> Point2 -> S.Set EdgeObstacle -> Picture
drawPathEdge x y pe = setLayer DebugLayer $ multiArrow x y green (S.map obstacleColor pe)