JavascriptImporter.h 506 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include "AssetImporter.h"
  3. namespace ToolCore
  4. {
  5. class JavascriptImporter : public AssetImporter
  6. {
  7. OBJECT(JavascriptImporter);
  8. public:
  9. /// Construct.
  10. JavascriptImporter(Context* context, Asset* asset);
  11. virtual ~JavascriptImporter();
  12. virtual void SetDefaults();
  13. bool IsComponentFile() { return isComponentFile_; }
  14. protected:
  15. bool Import();
  16. bool isComponentFile_;
  17. virtual bool LoadSettingsInternal();
  18. virtual bool SaveSettingsInternal();
  19. };
  20. }