ContentObject.cs 986 B

123456789101112131415161718192021222324252627282930313233
  1. //-----------------------------------------------------------------------------
  2. // ContentObject.cs
  3. //
  4. // Microsoft XNA Community Game Platform
  5. // Copyright (C) Microsoft Corporation. All rights reserved.
  6. //-----------------------------------------------------------------------------
  7. using System;
  8. using Microsoft.Xna.Framework.Content;
  9. namespace RolePlaying.Data
  10. {
  11. /// <summary>
  12. /// Base type for all of the data types that load via the content pipeline.
  13. /// </summary>
  14. public abstract class ContentObject
  15. {
  16. /// <summary>
  17. /// The name of the content pipeline asset that contained this object.
  18. /// </summary>
  19. private string assetName;
  20. /// <summary>
  21. /// The name of the content pipeline asset that contained this object.
  22. /// </summary>
  23. [ContentSerializerIgnore]
  24. public string AssetName
  25. {
  26. get { return assetName; }
  27. set { assetName = value; }
  28. }
  29. }
  30. }