Example use of fallback in placement room positions
This commit is contained in:
@@ -37,6 +37,11 @@ unusedSpotAwayFromLink x = PSPos f (const id) Nothing
|
||||
-> Just (PS p a,UsedSpot p a t)
|
||||
_ -> Nothing
|
||||
|
||||
setFallback :: Placement -> Placement -> Placement
|
||||
setFallback fallback plmnt = plmnt
|
||||
& plSpot . psFallback .~ Just fallback
|
||||
& plIDCont %~ fmap (fmap $ setFallback fallback)
|
||||
|
||||
unusedOffPathAwayFromLink :: Float -> PlacementSpot
|
||||
unusedOffPathAwayFromLink x = PSPos f (const id) Nothing
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user