SimulationInterfacesModuleInterface.cpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 "SimulationInterfacesModuleInterface.h"
  9. #include <AzCore/Memory/Memory.h>
  10. #include <SimulationInterfaces/SimulationInterfacesTypeIds.h>
  11. #include <Clients/ROS2SimulationInterfacesSystemComponent.h>
  12. #include <Clients/SimulationEntitiesManager.h>
  13. #include <Clients/SimulationFeaturesAggregator.h>
  14. #include <Clients/SimulationManager.h>
  15. namespace SimulationInterfaces
  16. {
  17. AZ_TYPE_INFO_WITH_NAME_IMPL(
  18. SimulationInterfacesModuleInterface, "SimulationInterfacesModuleInterface", SimulationInterfacesModuleInterfaceTypeId);
  19. AZ_RTTI_NO_TYPE_INFO_IMPL(SimulationInterfacesModuleInterface, AZ::Module);
  20. AZ_CLASS_ALLOCATOR_IMPL(SimulationInterfacesModuleInterface, AZ::SystemAllocator);
  21. SimulationInterfacesModuleInterface::SimulationInterfacesModuleInterface()
  22. {
  23. m_descriptors.insert(
  24. m_descriptors.end(),
  25. {
  26. SimulationEntitiesManager::CreateDescriptor(),
  27. SimulationManager::CreateDescriptor(),
  28. SimulationFeaturesAggregator::CreateDescriptor(),
  29. ROS2SimulationInterfaces::ROS2SimulationInterfacesSystemComponent::CreateDescriptor(),
  30. });
  31. }
  32. AZ::ComponentTypeList SimulationInterfacesModuleInterface::GetRequiredSystemComponents() const
  33. {
  34. return AZ::ComponentTypeList{
  35. azrtti_typeid<SimulationEntitiesManager>(),
  36. azrtti_typeid<SimulationManager>(),
  37. azrtti_typeid<SimulationFeaturesAggregator>(),
  38. azrtti_typeid<ROS2SimulationInterfaces::ROS2SimulationInterfacesSystemComponent>(),
  39. };
  40. }
  41. } // namespace SimulationInterfaces