diff options
author | Thomas Leyh <leyh.thomas@web.de> | 2016-07-24 08:14:18 +0200 |
---|---|---|
committer | Thomas Leyh <leyh.thomas@web.de> | 2016-07-24 08:14:18 +0200 |
commit | ced3d03bdb3ce866d832e03fb212865140905a9a (patch) | |
tree | 2a16c2063a46d3c354ce1585029dda3124f6ad93 /V3/Data/ISaveGameManager.cs | |
parent | 0394dccaf06e1009e591a6ff4d645895574724c1 (diff) | |
download | V3-ced3d03bdb3ce866d832e03fb212865140905a9a.tar.gz V3-ced3d03bdb3ce866d832e03fb212865140905a9a.tar.bz2 |
Diffstat (limited to 'V3/Data/ISaveGameManager.cs')
-rw-r--r-- | V3/Data/ISaveGameManager.cs | 25 |
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 |