SpriterImporter.h 856 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 SpriterImporter : public AssetImporter
  12. {
  13. OBJECT(SpriterImporter);
  14. public:
  15. /// Construct.
  16. SpriterImporter(Context* context, Asset* asset);
  17. virtual ~SpriterImporter();
  18. virtual void SetDefaults();
  19. Resource* GetResource(const String& typeName = String::EMPTY);
  20. Node* InstantiateNode(Node* parent, const String& name);
  21. protected:
  22. bool Import();
  23. virtual bool LoadSettingsInternal(JSONValue& jsonRoot);
  24. virtual bool SaveSettingsInternal(JSONValue& jsonRoot);
  25. };
  26. }