2
0

SimulationInterfacesEditorModule.cpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 "SimulationEntitiesManagerEditor.h"
  9. #include "SimulationManagerEditor.h"
  10. #include <SimulationInterfaces/SimulationInterfacesTypeIds.h>
  11. #include <SimulationInterfacesModuleInterface.h>
  12. namespace SimulationInterfaces
  13. {
  14. class SimulationInterfacesEditorModule : public SimulationInterfacesModuleInterface
  15. {
  16. public:
  17. AZ_RTTI(SimulationInterfacesEditorModule, SimulationInterfacesEditorModuleTypeId, SimulationInterfacesModuleInterface);
  18. AZ_CLASS_ALLOCATOR(SimulationInterfacesEditorModule, AZ::SystemAllocator);
  19. SimulationInterfacesEditorModule()
  20. {
  21. m_descriptors.insert(
  22. m_descriptors.end(),
  23. {
  24. SimulationEntitiesManagerEditor::CreateDescriptor(),
  25. SimulationManagerEditor::CreateDescriptor(),
  26. });
  27. }
  28. /**
  29. * Add required SystemComponents to the SystemEntity.
  30. * Non-SystemComponents should not be added here
  31. */
  32. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  33. {
  34. return AZ::ComponentTypeList{
  35. azrtti_typeid<SimulationEntitiesManagerEditor>(),
  36. };
  37. }
  38. };
  39. } // namespace SimulationInterfaces
  40. #if defined(O3DE_GEM_NAME)
  41. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME, _Editor), SimulationInterfaces::SimulationInterfacesEditorModule)
  42. #else
  43. AZ_DECLARE_MODULE_CLASS(Gem_SimulationInterfaces_Editor, SimulationInterfaces::SimulationInterfacesEditorModule)
  44. #endif