Implement randomness at the placement datatype level
This commit is contained in:
@@ -39,6 +39,7 @@ data Placement = Placement
|
||||
, _idPlacement :: Int -> Maybe Placement
|
||||
}
|
||||
| PlacementUsingPos Point3 (Point3 -> Placement) -- allows a placement to use a shifted position
|
||||
| RandomPlacement {_unRandomPlacement :: State StdGen Placement}
|
||||
|
||||
sPS :: Point2 -> Float -> PSType -> Placement
|
||||
sPS p a pt = Placement (PS p a) pt (const Nothing)
|
||||
|
||||
Reference in New Issue
Block a user