JavascriptImporter.h 891 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  3. // LICENSE: Atomic Game Engine Editor and Tools EULA
  4. // Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
  5. // license information: https://github.com/AtomicGameEngine/AtomicGameEngine
  6. //
  7. #pragma once
  8. #include "AssetImporter.h"
  9. namespace ToolCore
  10. {
  11. class JavascriptImporter : public AssetImporter
  12. {
  13. OBJECT(JavascriptImporter);
  14. public:
  15. /// Construct.
  16. JavascriptImporter(Context* context, Asset* asset);
  17. virtual ~JavascriptImporter();
  18. virtual void SetDefaults();
  19. bool IsComponentFile() { return isComponentFile_; }
  20. Resource* GetResource(const String& typeName = String::EMPTY);
  21. protected:
  22. bool Import();
  23. bool isComponentFile_;
  24. virtual bool LoadSettingsInternal(JSONValue& jsonRoot);
  25. virtual bool SaveSettingsInternal(JSONValue& jsonRoot);
  26. };
  27. }