Move universe IO effects outside of world
This commit is contained in:
@@ -12,7 +12,7 @@ startNewGame u = startSeedGame i u
|
||||
startSeedGame :: Int -> Universe -> Universe
|
||||
startSeedGame i u = u
|
||||
& menuLayers .~ [WaitScreen (const "GENERATING...") 1]
|
||||
& uvWorld . sideEffects .~ \_ -> do
|
||||
& uvIOEffects .~ \_ -> do
|
||||
w <- generateWorldFromSeed i
|
||||
return $ u & menuLayers .~ [] & uvWorld .~ w
|
||||
& savedWorlds . at LevelStartSlot ?~ w
|
||||
|
||||
Reference in New Issue
Block a user