SpriterImporter.h 539 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include "AssetImporter.h"
  3. namespace ToolCore
  4. {
  5. class SpriterImporter : public AssetImporter
  6. {
  7. OBJECT(SpriterImporter);
  8. public:
  9. /// Construct.
  10. SpriterImporter(Context* context, Asset* asset);
  11. virtual ~SpriterImporter();
  12. virtual void SetDefaults();
  13. Resource* GetResource(const String& typeName = String::EMPTY);
  14. Node* InstantiateNode(Node* parent, const String& name);
  15. protected:
  16. bool Import();
  17. virtual bool LoadSettingsInternal();
  18. virtual bool SaveSettingsInternal();
  19. };
  20. }