LambdaHack-0.2.8: A roguelike game engine in early and active development

Safe HaskellNone

Game.LambdaHack.Client.Action.Save

Description

Saving and restoring client game state.

Synopsis

Documentation

saveGameCli :: String -> Bool -> ConfigUI -> State -> StateClient -> IO ()Source

Save a simple serialized version of the current state. Protected by a lock to avoid corrupting the file.

restoreGameCli :: String -> ConfigUI -> (FilePath -> IO FilePath) -> Text -> IO (Either (State, StateClient, Msg) Msg)Source

Restore a saved game, if it exists. Initialize directory structure, if needed.