ROS2EditorModule.cpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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/RTTI/RTTIMacros.h>
  9. #include <Frame/ROS2FrameSystemComponent.h>
  10. #include <ROS2/Frame/ROS2FrameEditorComponent.h>
  11. #include <ROS2ModuleInterface.h>
  12. #include <Spawner/ROS2SpawnPointEditorComponent.h>
  13. #include <Spawner/ROS2SpawnerEditorComponent.h>
  14. #include <SystemComponents/ROS2EditorSystemComponent.h>
  15. namespace ROS2
  16. {
  17. class ROS2EditorModule : public ROS2ModuleInterface
  18. {
  19. public:
  20. AZ_RTTI(ROS2EditorModule, "{3DDFC98F-D1CC-4658-BAF8-2CC34A9D39F3}", ROS2ModuleInterface);
  21. AZ_CLASS_ALLOCATOR(ROS2EditorModule, AZ::SystemAllocator);
  22. ROS2EditorModule()
  23. {
  24. m_descriptors.insert(
  25. m_descriptors.end(),
  26. { ROS2EditorSystemComponent::CreateDescriptor(),
  27. ROS2SpawnerEditorComponent::CreateDescriptor(),
  28. ROS2SpawnPointEditorComponent::CreateDescriptor(),
  29. ROS2FrameSystemComponent::CreateDescriptor(),
  30. ROS2FrameEditorComponent::CreateDescriptor() });
  31. }
  32. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  33. {
  34. return AZ::ComponentTypeList{
  35. azrtti_typeid<ROS2EditorSystemComponent>(),
  36. azrtti_typeid<ROS2FrameSystemComponent>(),
  37. };
  38. }
  39. };
  40. } // namespace ROS2
  41. AZ_DECLARE_MODULE_CLASS(Gem_ROS2, ROS2::ROS2EditorModule)