aboutsummaryrefslogtreecommitdiff
path: root/V3/Data/ISaveGameManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'V3/Data/ISaveGameManager.cs')
-rw-r--r--V3/Data/ISaveGameManager.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/V3/Data/ISaveGameManager.cs b/V3/Data/ISaveGameManager.cs
new file mode 100644
index 0000000..f4e810f
--- /dev/null
+++ b/V3/Data/ISaveGameManager.cs
@@ -0,0 +1,25 @@
+using System.Collections.Generic;
+
+namespace V3.Data
+{
+ /// <summary>
+ /// Stores and manages the game state in save games.
+ /// </summary>
+ public interface ISaveGameManager
+ {
+ /// <summary>
+ /// Creates and persists a new save game of the given data with the
+ /// title.
+ /// </summary>
+ /// <param name="gameState">the data to store</param>
+ void CreateSaveGame(GameState gameState);
+
+ /// <summary>
+ /// Loads all available save games and returns them ordered by the
+ /// creation date.
+ /// </summary>
+ /// <returns>a list of all available save games, orderd by creation
+ /// data</returns>
+ List<ISaveGame> GetSaveGames();
+ }
+} \ No newline at end of file