SaveGameDescription.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #region File Description
  2. //-----------------------------------------------------------------------------
  3. // SaveGameDescription.cs
  4. //
  5. // Microsoft XNA Community Game Platform
  6. // Copyright (C) Microsoft Corporation. All rights reserved.
  7. //-----------------------------------------------------------------------------
  8. #endregion
  9. #region Using Statements
  10. using System;
  11. using System.Xml.Serialization;
  12. #endregion
  13. namespace RolePlaying
  14. {
  15. /// <summary>
  16. /// The description of a save game file.
  17. /// </summary>
  18. /// <remarks>
  19. /// This data is saved in a separate file, and loaded by
  20. /// the Load and Save Game menu screens.
  21. /// </remarks>
  22. #if WINDOWS
  23. [Serializable]
  24. #endif
  25. public class SaveGameDescription
  26. {
  27. /// <summary>
  28. /// The name of the save file with the game data.
  29. /// </summary>
  30. public string FileName;
  31. /// <summary>
  32. /// The short description of how far the player has progressed in the game.
  33. /// </summary>
  34. /// <remarks>Here, it's the current quest.</remarks>
  35. public string ChapterName;
  36. /// <summary>
  37. /// The short description of how far the player has progressed in the game.
  38. /// </summary>
  39. /// <remarks>Here, it's the time played.</remarks>
  40. public string Description;
  41. }
  42. }