Cleanup, work towards allowing for placements to interact across rooms

This commit is contained in:
2021-11-25 01:13:41 +00:00
parent 4ad02f29b2
commit 5b7d9fccf1
7 changed files with 27 additions and 35 deletions
+2
View File
@@ -14,6 +14,7 @@ import System.Random
import Data.Maybe
import qualified Data.IntMap.Strict as IM
--import Data.Bifunctor
data PSType = PutCrit {_unPutCrit :: Creature}
| PutMachine Color [Point2] Machine
| PutLS LightSource
@@ -32,6 +33,7 @@ data PSType = PutCrit {_unPutCrit :: Creature}
| RandPS (State StdGen PSType)
| PutForeground Shape
| PutWorldUpdate (PlacementSpot -> World -> World)
| AddToPList Int PSType
| PutNothing
| PutID { _putID :: Int}
-- maybe there is a monadic implementation of this?