ROS2-Gem-DemoSystemComponent.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // {BEGIN_LICENSE}
  2. /*
  3. * Copyright (c) Contributors to the Open 3D Engine Project.
  4. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. *
  6. * SPDX-License-Identifier: Apache-2.0 OR MIT
  7. *
  8. */
  9. // {END_LICENSE}
  10. #pragma once
  11. #include <AzCore/Component/Component.h>
  12. #include <ROS2-Gem-Demo/ROS2-Gem-DemoBus.h>
  13. namespace ROS2_Gem_Demo
  14. {
  15. class ROS2_Gem_DemoSystemComponent
  16. : public AZ::Component
  17. , protected ROS2_Gem_DemoRequestBus::Handler
  18. {
  19. public:
  20. AZ_COMPONENT(ROS2_Gem_DemoSystemComponent, "{24d1ad58-703b-4153-bcf7-0d8d2f83d25f}");
  21. static void Reflect(AZ::ReflectContext* context);
  22. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  23. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  24. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  25. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  26. ROS2_Gem_DemoSystemComponent();
  27. ~ROS2_Gem_DemoSystemComponent();
  28. protected:
  29. ////////////////////////////////////////////////////////////////////////
  30. // ROS2_Gem_DemoRequestBus interface implementation
  31. ////////////////////////////////////////////////////////////////////////
  32. ////////////////////////////////////////////////////////////////////////
  33. // AZ::Component interface implementation
  34. void Init() override;
  35. void Activate() override;
  36. void Deactivate() override;
  37. ////////////////////////////////////////////////////////////////////////
  38. };
  39. }