You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow the user to export (serialize) their game state into a text file, and load (deserialize) the game from the exported file.
There is a menu item with an Export game label, which triggers the export mechanism.
The exporting process asks the user for the location and the name of the exported file. The file is created in the defined directory, using the given name as a JSON file. For example, .json.
The file stores every necessary game state information in a JSON format.
There is a menu button labeled Import for importing a previously saved game.
The system shows a file browser to select an exported file.
If the chosen file is not in the proper format, the application shows a dialog window (OK, Cancel) with the IMPORT ERROR! Unfortunately the given file is in wrong format. Please try another one! message.
If the user clicks OK, the window closes without any further action.
If the user click Cancel, all dialogs and modal windows close.
If the file is in the required format, the game loads the state, and navigates to the point on the map where the user left the game with the inventory.
Allow the user to export (serialize) their game state into a text file, and load (deserialize) the game from the exported file.
There is a menu item with an Export game label, which triggers the export mechanism.
The exporting process asks the user for the location and the name of the exported file. The file is created in the defined directory, using the given name as a JSON file. For example, .json.
The file stores every necessary game state information in a JSON format.
There is a menu button labeled Import for importing a previously saved game.
The system shows a file browser to select an exported file.
If the file is in the required format, the game loads the state, and navigates to the point on the map where the user left the game with the inventory.