AtomImGuiToolsModule.cpp 1.4 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/Module/Module.h>
  10. #include <AtomImGuiToolsSystemComponent.h>
  11. namespace AtomImGuiTools
  12. {
  13. class AtomImGuiToolsModule
  14. : public AZ::Module
  15. {
  16. public:
  17. AZ_RTTI(AtomImGuiToolsModule, "{1B65F246-7977-4DC4-B5D9-BDAD374388FF}", AZ::Module);
  18. AZ_CLASS_ALLOCATOR(AtomImGuiToolsModule, AZ::SystemAllocator);
  19. AtomImGuiToolsModule()
  20. : AZ::Module()
  21. {
  22. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  23. m_descriptors.insert(m_descriptors.end(), {
  24. AtomImGuiToolsSystemComponent::CreateDescriptor(),
  25. });
  26. }
  27. /**
  28. * Add required SystemComponents to the SystemEntity.
  29. */
  30. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  31. {
  32. return AZ::ComponentTypeList {
  33. azrtti_typeid<AtomImGuiToolsSystemComponent>(),
  34. };
  35. }
  36. };
  37. }
  38. #if defined(O3DE_GEM_NAME)
  39. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME), AtomImGuiTools::AtomImGuiToolsModule)
  40. #else
  41. AZ_DECLARE_MODULE_CLASS(Gem_AtomImGuiTools, AtomImGuiTools::AtomImGuiToolsModule)
  42. #endif