Module.cpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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/Memory/SystemAllocator.h>
  9. #include <AzCore/RTTI/RTTI.h>
  10. #include <AzCore/Module/Module.h>
  11. #include "AtomViewportDisplayIconsSystemComponent.h"
  12. namespace AZ
  13. {
  14. namespace Render
  15. {
  16. class AtomViewportDisplayInfoModule
  17. : public AZ::Module
  18. {
  19. public:
  20. AZ_RTTI(AtomViewportDisplayInfoModule, "{8D72F14E-958D-4225-B3BC-C5C87BDDD426}", AZ::Module);
  21. AZ_CLASS_ALLOCATOR(AtomViewportDisplayInfoModule, AZ::SystemAllocator);
  22. AtomViewportDisplayInfoModule()
  23. : AZ::Module()
  24. {
  25. m_descriptors.insert(m_descriptors.end(), {
  26. AtomViewportDisplayIconsSystemComponent::CreateDescriptor(),
  27. });
  28. }
  29. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  30. {
  31. return AZ::ComponentTypeList{
  32. azrtti_typeid<AtomViewportDisplayIconsSystemComponent>(),
  33. };
  34. }
  35. };
  36. } // namespace Render
  37. } // namespace AZ
  38. #if defined(O3DE_GEM_NAME)
  39. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME), AZ::Render::AtomViewportDisplayInfoModule)
  40. #else
  41. AZ_DECLARE_MODULE_CLASS(Gem_AtomViewportDisplayInfo, AZ::Render::AtomViewportDisplayInfoModule)
  42. #endif