Fix dependency loop
This commit is contained in:
parent
b7278d6afc
commit
f529fc5237
25 changed files with 251 additions and 199 deletions
|
@ -1,16 +1,17 @@
|
|||
module RPGEngine.Input.Paused
|
||||
module RPGEngine.Input.Paused
|
||||
( handleInputPaused
|
||||
) where
|
||||
|
||||
import RPGEngine.Input.Core ( InputHandler, handleAnyKey )
|
||||
|
||||
import RPGEngine.Data ( Game (..), State (..) )
|
||||
import RPGEngine.Input.Core (InputHandler, handleAnyKey)
|
||||
import RPGEngine.Data (Game (..), State (continue, Paused))
|
||||
|
||||
------------------------------ Exported ------------------------------
|
||||
|
||||
handleInputPaused :: InputHandler Game
|
||||
handleInputPaused = handleAnyKey continueGame
|
||||
|
||||
----------------------------------------------------------------------
|
||||
|
||||
continueGame :: Game -> Game
|
||||
continueGame g@Game{ state = Paused{ continue = state }} = newGame
|
||||
where newGame = g{ state = state }
|
||||
|
|
Reference in a new issue