EditorModule.cpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 <AzCore/RTTI/RTTI.h>
  9. #include <AzCore/Module/Module.h>
  10. #include <RPI.Private/Module.h>
  11. #include <RPI.Private/RPISystemComponent.h>
  12. namespace AZ
  13. {
  14. namespace RPI
  15. {
  16. class EditorModule final
  17. : public AZ::RPI::Module
  18. {
  19. public:
  20. AZ_RTTI(EditorModule, "{F2DF5DD9-1323-436C-B0E5-B200B8709CE5}", AZ::RPI::Module);
  21. EditorModule()
  22. : AZ::RPI::Module()
  23. {
  24. }
  25. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  26. {
  27. AZ::ComponentTypeList ctl = AZ::RPI::Module::GetRequiredSystemComponents();
  28. // add any editor module required systems here.
  29. return ctl;
  30. }
  31. };
  32. } // namespace RPI
  33. } // namespace RPI
  34. #if defined(O3DE_GEM_NAME)
  35. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME, _Editor), AZ::RPI::EditorModule)
  36. #else
  37. AZ_DECLARE_MODULE_CLASS(Gem_Atom_RPI_Editor, AZ::RPI::EditorModule)
  38. #endif