ScriptEventsTestApplication.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 "ScriptEventsSystemComponent.h"
  10. #include <AzFramework/Application/Application.h>
  11. #include <AzCore/Asset/AssetManagerComponent.h>
  12. #include <AzCore/Jobs/JobManagerComponent.h>
  13. #include <AzCore/IO/Streamer/StreamerComponent.h>
  14. #include <AzFramework/Asset/AssetCatalogComponent.h>
  15. namespace ScriptEventsTests
  16. {
  17. class Application
  18. : public AzFramework::Application
  19. {
  20. public:
  21. using SuperType = AzFramework::Application;
  22. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  23. {
  24. AZ::ComponentTypeList components;
  25. components.insert(components.end(),
  26. {
  27. azrtti_typeid<ScriptEvents::ScriptEventsSystemComponent>(),
  28. azrtti_typeid<AZ::AssetManagerComponent>(),
  29. azrtti_typeid<AZ::JobManagerComponent>(),
  30. azrtti_typeid<AZ::StreamerComponent>(),
  31. azrtti_typeid<AzFramework::AssetCatalogComponent>(),
  32. });
  33. return components;
  34. }
  35. void CreateReflectionManager() override
  36. {
  37. SuperType::CreateReflectionManager();
  38. RegisterComponentDescriptor(ScriptEvents::ScriptEventsSystemComponent::CreateDescriptor());
  39. RegisterComponentDescriptor(AZ::AssetManagerComponent::CreateDescriptor());
  40. RegisterComponentDescriptor(AzFramework::AssetCatalogComponent::CreateDescriptor());
  41. }
  42. };
  43. }