ScriptCanvasTestApplication.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <Editor/Framework/ScriptCanvasGraphUtilities.h>
  10. #include "EntityRefTests.h"
  11. #include <Asset/EditorAssetSystemComponent.h>
  12. #include <AzFramework/Application/Application.h>
  13. #include <ScriptCanvas/SystemComponent.h>
  14. namespace ScriptCanvasTests
  15. {
  16. class Application
  17. : public AzFramework::Application
  18. {
  19. public:
  20. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  21. {
  22. AZ::ComponentTypeList components = AzFramework::Application::GetRequiredSystemComponents();
  23. components.insert(components.end(),
  24. {
  25. azrtti_typeid<ScriptCanvas::SystemComponent>(),
  26. azrtti_typeid<ScriptCanvasTests::TestComponent>(),
  27. azrtti_typeid<ScriptCanvasEditor::TraceMessageComponent>(),
  28. });
  29. return components;
  30. }
  31. void CreateReflectionManager() override
  32. {
  33. AzFramework::Application::CreateReflectionManager();
  34. RegisterComponentDescriptor(ScriptCanvas::SystemComponent::CreateDescriptor());
  35. RegisterComponentDescriptor(ScriptCanvasTests::TestComponent::CreateDescriptor());
  36. RegisterComponentDescriptor(ScriptCanvasEditor::TraceMessageComponent::CreateDescriptor());
  37. }
  38. };
  39. }