ROS2EditorSystemComponent.cpp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. #include <AzCore/Serialization/SerializeContext.h>
  9. #include <ROS2EditorSystemComponent.h>
  10. namespace ROS2
  11. {
  12. void ROS2EditorSystemComponent::Reflect(AZ::ReflectContext* context)
  13. {
  14. if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
  15. {
  16. serializeContext->Class<ROS2EditorSystemComponent, ROS2SystemComponent>()->Version(0);
  17. }
  18. }
  19. ROS2EditorSystemComponent::ROS2EditorSystemComponent() = default;
  20. ROS2EditorSystemComponent::~ROS2EditorSystemComponent() = default;
  21. void ROS2EditorSystemComponent::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)
  22. {
  23. BaseSystemComponent::GetProvidedServices(provided);
  24. provided.push_back(AZ_CRC_CE("ROS2EditorService"));
  25. }
  26. void ROS2EditorSystemComponent::GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible)
  27. {
  28. BaseSystemComponent::GetIncompatibleServices(incompatible);
  29. incompatible.push_back(AZ_CRC_CE("ROS2EditorService"));
  30. }
  31. void ROS2EditorSystemComponent::GetRequiredServices([[maybe_unused]] AZ::ComponentDescriptor::DependencyArrayType& required)
  32. {
  33. BaseSystemComponent::GetRequiredServices(required);
  34. }
  35. void ROS2EditorSystemComponent::GetDependentServices([[maybe_unused]] AZ::ComponentDescriptor::DependencyArrayType& dependent)
  36. {
  37. BaseSystemComponent::GetDependentServices(dependent);
  38. }
  39. void ROS2EditorSystemComponent::Activate()
  40. {
  41. ROS2SystemComponent::Activate();
  42. }
  43. void ROS2EditorSystemComponent::Deactivate()
  44. {
  45. ROS2SystemComponent::Deactivate();
  46. }
  47. } // namespace ROS2