ContentObject.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #region File Description
  2. //-----------------------------------------------------------------------------
  3. // ContentObject.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 Microsoft.Xna.Framework.Content;
  12. #endregion
  13. namespace RolePlayingGameData
  14. {
  15. /// <summary>
  16. /// Base type for all of the data types that load via the content pipeline.
  17. /// </summary>
  18. public abstract class ContentObject
  19. {
  20. /// <summary>
  21. /// The name of the content pipeline asset that contained this object.
  22. /// </summary>
  23. private string assetName;
  24. /// <summary>
  25. /// The name of the content pipeline asset that contained this object.
  26. /// </summary>
  27. [ContentSerializerIgnore]
  28. public string AssetName
  29. {
  30. get { return assetName; }
  31. set { assetName = value; }
  32. }
  33. }
  34. }