ROS2SpawnPointEditorComponent.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 "Spawner/ROS2SpawnPointComponent.h"
  10. #include "Spawner/ROS2SpawnPointComponentController.h"
  11. #include "Spawner/ROS2SpawnerEditorComponent.h"
  12. #include <AzToolsFramework/ToolsComponents/EditorComponentAdapter.h>
  13. #include <AzToolsFramework/ToolsComponents/EditorComponentBase.h>
  14. namespace ROS2
  15. {
  16. using ROS2SpawnPointEditorComponentBase = AzToolsFramework::Components::
  17. EditorComponentAdapter<ROS2SpawnPointComponentController, ROS2SpawnPointComponent, ROS2SpawnPointComponentConfig>;
  18. class ROS2SpawnPointEditorComponent : public ROS2SpawnPointEditorComponentBase
  19. {
  20. public:
  21. AZ_EDITOR_COMPONENT(
  22. ROS2SpawnPointEditorComponent, "{2AE1CAAE-B300-49FD-8F6D-F7AAABED1EC3}", AzToolsFramework::Components::EditorComponentBase);
  23. ROS2SpawnPointEditorComponent() = default;
  24. ROS2SpawnPointEditorComponent(const ROS2SpawnPointComponentConfig& config);
  25. ~ROS2SpawnPointEditorComponent() = default;
  26. static void Reflect(AZ::ReflectContext* context);
  27. //////////////////////////////////////////////////////////////////////////
  28. // ROS2SpawnPointEditorComponentBase overrides
  29. void Activate() override;
  30. void Deactivate() override;
  31. //////////////////////////////////////////////////////////////////////////
  32. AZStd::pair<AZStd::string, SpawnPointInfo> GetInfo() const;
  33. };
  34. } // namespace ROS2