Nest fields in CWorld
This commit is contained in:
@@ -449,14 +449,14 @@ viewBoundaries w =
|
||||
<> color yellow (foldMap (\q -> line [p, q]) $ farWallPoints p w)
|
||||
where
|
||||
p = _crPos $ you w
|
||||
grs = filter (pointInOrOnPolygon p . _grBound) (_gameRooms (_cWorld w))
|
||||
grs = filter (pointInOrOnPolygon p . _grBound) (_cwgGameRooms $ _cwGen (_cWorld w))
|
||||
|
||||
viewClipBounds :: Configuration -> World -> Picture
|
||||
viewClipBounds cfig w
|
||||
| _debug_view_clip_bounds cfig == AllRoomClipBoundaries =
|
||||
setLayer DebugLayer $ color green $ foldMap (polygonWire . _cpPoints) (_roomClipping (_cWorld w))
|
||||
setLayer DebugLayer $ color green $ foldMap (polygonWire . _cpPoints) (_cwgRoomClipping $ _cwGen (_cWorld w))
|
||||
| _debug_view_clip_bounds cfig == IntersectingRoomClipBoundaries =
|
||||
setLayer DebugLayer $ f (_roomClipping (_cWorld w))
|
||||
setLayer DebugLayer $ f (_cwgRoomClipping $ _cwGen (_cWorld w))
|
||||
| otherwise = mempty
|
||||
where
|
||||
f (x : xs) = g x xs <> f xs
|
||||
|
||||
Reference in New Issue
Block a user