17 lines
No EOL
470 B
Haskell
17 lines
No EOL
470 B
Haskell
module RPGEngine.Input.Lose
|
|
( handleInputLose
|
|
) where
|
|
|
|
import RPGEngine.Input.Core (InputHandler, handleAnyKey)
|
|
|
|
import RPGEngine.Data (Game(..), State(..))
|
|
|
|
------------------------------ Exported ------------------------------
|
|
|
|
handleInputLose :: InputHandler Game
|
|
handleInputLose = handleAnyKey retry
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
retry :: Game -> Game
|
|
retry g@Game{ state = Lose{ restart = restart }} = g{ state = restart } |