Move universe IO effects outside of world
This commit is contained in:
+2
-2
@@ -30,7 +30,7 @@ doQuicksave = saveWorldInSlot QuicksaveSlot
|
||||
clearKeys :: World -> World
|
||||
clearKeys = (keys .~ mempty) . (mouseButtons .~ mempty)
|
||||
|
||||
saveLevelStartSlot :: World -> World
|
||||
saveLevelStartSlot :: Universe -> Universe
|
||||
--saveLevelStartSlot = id
|
||||
saveLevelStartSlot = sideEffects %~ (fmap (saveWorldInSlot LevelStartSlot) . )
|
||||
saveLevelStartSlot = saveWorldInSlot LevelStartSlot
|
||||
--saveLevelStartSlot = sideEffects %~ (fmap (undefined) . )
|
||||
|
||||
Reference in New Issue
Block a user