ScriptCanvasTestApplication.h 1.3 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<ScriptCanvasTests::TestComponent>(),
  26. azrtti_typeid<ScriptCanvasEditor::TraceMessageComponent>(),
  27. });
  28. return components;
  29. }
  30. void CreateReflectionManager() override
  31. {
  32. AzFramework::Application::CreateReflectionManager();
  33. RegisterComponentDescriptor(ScriptCanvasTests::TestComponent::CreateDescriptor());
  34. RegisterComponentDescriptor(ScriptCanvasEditor::TraceMessageComponent::CreateDescriptor());
  35. }
  36. };
  37. }