LambdaHack-0.4.9.0: A game engine library for roguelike dungeon crawlers

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 copy over data files, if needed.