CustomImporterContext.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #region File Description
  2. //-----------------------------------------------------------------------------
  3. // CustomImporterContext.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 Microsoft.Xna.Framework.Content.Pipeline;
  11. #endregion
  12. namespace CompileEffect
  13. {
  14. /// <summary>
  15. /// Custom context object for running Content Pipeline importers.
  16. /// </summary>
  17. class CustomImporterContext : ContentImporterContext
  18. {
  19. /// <summary>
  20. /// Constructor.
  21. /// </summary>
  22. public CustomImporterContext(ContentBuildLogger logger)
  23. {
  24. this.logger = logger;
  25. }
  26. /// <summary>
  27. /// Gets a logger for reporting content build messages and warnings.
  28. /// </summary>
  29. public override ContentBuildLogger Logger
  30. {
  31. get { return logger; }
  32. }
  33. ContentBuildLogger logger;
  34. /// <summary>
  35. /// Gets the intermediate directory for the current content build.
  36. /// </summary>
  37. public override string IntermediateDirectory
  38. {
  39. get { return string.Empty; }
  40. }
  41. /// <summary>
  42. /// Gets the final output directory for the current content build.
  43. /// </summary>
  44. public override string OutputDirectory
  45. {
  46. get { return string.Empty; }
  47. }
  48. /// <summary>
  49. /// Records any additional input files that were read by the importer.
  50. /// </summary>
  51. public override void AddDependency(string filename)
  52. {
  53. }
  54. }
  55. }