MockContentManager.cs 491 B

1234567891011121314151617181920
  1. // Copyright (c) Craftwork Games. All rights reserved.
  2. // Licensed under the MIT license.
  3. // See LICENSE file in the project root for full license information.
  4. using Microsoft.Xna.Framework;
  5. using Microsoft.Xna.Framework.Content;
  6. namespace MonoGame.Extended.Tests;
  7. public class MockContentManager : ContentManager
  8. {
  9. public MockContentManager() : base(new GameServiceContainer())
  10. {
  11. }
  12. public override T Load<T>(string assetName)
  13. {
  14. return default(T);
  15. }
  16. }