BsScriptCodeImporter.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsPrerequisites.h"
  5. #include "BsSpecificImporter.h"
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup Resources-Engine-Internal
  9. * @{
  10. */
  11. /** Imports C# script source code files (.cs). */
  12. class BS_EXPORT ScriptCodeImporter : public SpecificImporter
  13. {
  14. public:
  15. ScriptCodeImporter();
  16. virtual ~ScriptCodeImporter();
  17. /** @copydoc SpecificImporter::isExtensionSupported */
  18. virtual bool isExtensionSupported(const WString& ext) const override;
  19. /** @copydoc SpecificImporter::isMagicNumberSupported */
  20. virtual bool isMagicNumberSupported(const UINT8* magicNumPtr, UINT32 numBytes) const override;
  21. /** @copydoc SpecificImporter::import */
  22. virtual ResourcePtr import(const Path& filePath, ConstImportOptionsPtr importOptions) override;
  23. /** @copydoc SpecificImporter::createImportOptions */
  24. virtual ImportOptionsPtr createImportOptions() const override;
  25. static const WString DEFAULT_EXTENSION;
  26. };
  27. /** @} */
  28. }