3
0

AWSMetricsEditorSystemComponent.h 1.8 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 <AWSMetricsBus.h>
  10. #include <AWSMetricsSystemComponent.h>
  11. #include <AzCore/Component/Component.h>
  12. #include <AzCore/Console/IConsole.h>
  13. #include <AzCore/std/smart_ptr/unique_ptr.h>
  14. #include <AzToolsFramework/ActionManager/ActionManagerRegistrationNotificationBus.h>
  15. namespace AWSMetrics
  16. {
  17. class MetricsManager;
  18. //! Gem System Component. Responsible for instantiating and managing the Metrics Manager
  19. class AWSMetricsEditorSystemComponent
  20. : public AZ::Component
  21. , private AzToolsFramework::ActionManagerRegistrationNotificationBus::Handler
  22. {
  23. public:
  24. AZ_COMPONENT(AWSMetricsEditorSystemComponent, "{6144EDF6-12A6-4C3B-ADF1-7AA3C421BA68}");
  25. static void Reflect(AZ::ReflectContext* context);
  26. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  27. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  28. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  29. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType&);
  30. protected:
  31. ////////////////////////////////////////////////////////////////////////
  32. // AZ::Component interface implementation
  33. void Activate() override;
  34. void Deactivate() override;
  35. ////////////////////////////////////////////////////////////////////////
  36. // ActionManagerRegistrationNotificationBus implementation
  37. void OnMenuBindingHook() override;
  38. };
  39. } // namespace AWSMetrics