ROSConDemoEditorModule.cpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 <QtCore/qglobal.h>
  9. #include <ROSConDemoModuleInterface.h>
  10. #include <ROSConDemoEditorSystemComponent.h>
  11. namespace ROSConDemo
  12. {
  13. class ROSConDemoEditorModule : public ROSConDemoModuleInterface
  14. {
  15. public:
  16. AZ_RTTI(ROSConDemoEditorModule, "{ca41105c-1c8c-1db7-72fe-c20cd0160c76}", ROSConDemoModuleInterface);
  17. AZ_CLASS_ALLOCATOR(ROSConDemoEditorModule, AZ::SystemAllocator);
  18. ROSConDemoEditorModule()
  19. {
  20. m_descriptors.insert(
  21. m_descriptors.end(),
  22. {
  23. ROSConDemoEditorSystemComponent::CreateDescriptor(),
  24. });
  25. }
  26. /**
  27. * Add required SystemComponents to the SystemEntity.
  28. * Non-SystemComponents should not be added here
  29. */
  30. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  31. {
  32. return AZ::ComponentTypeList{
  33. azrtti_typeid<ROSConDemoEditorSystemComponent>(),
  34. };
  35. }
  36. };
  37. } // namespace ROSConDemo
  38. AZ_DECLARE_MODULE_CLASS(Gem_ROSConDemo, ROSConDemo::ROSConDemoEditorModule)