BsResourceImporter.h 974 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include "BsEditorPrerequisites.h"
  3. #include "BsSpecificImporter.h"
  4. namespace BansheeEngine
  5. {
  6. /**
  7. * @brief Imports Banshee resources. Essentially just does a pass-through
  8. * as source asset to import and resulting resource are one and the same.
  9. *
  10. * @note This is useful in the project library where we sometimes want to save processed
  11. * resources in the library.
  12. */
  13. class BS_ED_EXPORT ResourceImporter : public SpecificImporter
  14. {
  15. public:
  16. ResourceImporter();
  17. virtual ~ResourceImporter();
  18. /** @copydoc SpecificImporter::isExtensionSupported */
  19. virtual bool isExtensionSupported(const WString& ext) const;
  20. /** @copydoc SpecificImporter::isMagicNumberSupported */
  21. virtual bool isMagicNumberSupported(const UINT8* magicNumPtr, UINT32 numBytes) const;
  22. /** @copydoc SpecificImporter::import */
  23. virtual ResourcePtr import(const Path& filePath, ConstImportOptionsPtr importOptions);
  24. static const WString DEFAULT_EXTENSION;
  25. };
  26. }