EditorComponent.h 928 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 <Atomic/Scene/Component.h>
  9. using namespace Atomic;
  10. namespace AtomicEditor
  11. {
  12. class SceneEditor3D;
  13. /// A component that requires the editor, for example CubemapGenerator requires a renderer
  14. /// IMPORTANT: Other tool related components, which don't require the editor, should be in ToolCore
  15. class EditorComponent : public Component
  16. {
  17. OBJECT(EditorComponent);
  18. public:
  19. /// Construct.
  20. EditorComponent(Context* context);
  21. /// Destruct.
  22. virtual ~EditorComponent();
  23. /// Register object factory.
  24. static void RegisterObject(Context* context);
  25. protected:
  26. SceneEditor3D* GetSceneEditor();
  27. };
  28. }