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