Tweak room modification when creating link

This commit is contained in:
2022-06-02 22:04:20 +01:00
parent 024f72da20
commit 15d8b821d4
3 changed files with 21 additions and 8 deletions
+2 -2
View File
@@ -1393,7 +1393,6 @@ data Placement
{ _plSpot :: PlacementSpot
, _plType :: PSType
, _plMID :: Maybe Int
-- , _plGenUpdate :: Maybe (GenParams -> Placement -> (GenParams, Placement) )
, _plIDCont :: World -> Placement -> Maybe Placement
}
| PlacementUsingPos Point3 (Point3 -> Placement) -- allows a placement to use a shifted position
@@ -1413,7 +1412,7 @@ data Room = Room
--, _rmOutLinks :: [RoomLink]
--, _rmInLinks :: [RoomLink]
-- update the room when assigning the next link to an adjacent room with the head of of this list, return the tail
, _rmLinkEff :: [(Point2,Float) -> Room -> Room]
, _rmLinkEff :: [RoomLink -> Room -> Room]
, _rmPos :: [RoomPos]
, _rmPath :: [(Point2, Point2)]
, _rmPmnts :: [Placement]
@@ -1457,6 +1456,7 @@ data RoomLinkType
| FromNorth Int
| FromWest Int
| FromEast Int
| BlockedLink
deriving (Eq,Ord,Show)
data CardinalPoint
= North