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

Safe HaskellNone

Game.LambdaHack.Common.Save

Description

Saving and restoring server game state.

Synopsis

Documentation

saveToChan :: ChanSave a -> a -> IO ()Source

wrapInSaves :: Binary a => (a -> FilePath) -> (ChanSave a -> IO ()) -> IO ()Source

restoreGame :: Binary a => String -> [(FilePath, FilePath)] -> (FilePath -> IO FilePath) -> IO (Maybe a)Source

Restore a saved game, if it exists. Initialize directory structure and cope over data files, if needed.