Safe Haskell | None |
---|
Saving and restoring client game state.
- saveGameCli :: String -> Bool -> ConfigUI -> State -> StateClient -> IO ()
- restoreGameCli :: String -> ConfigUI -> (FilePath -> IO FilePath) -> Text -> IO (Either (State, StateClient, Msg) Msg)
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.