ImageProcessingModule.cpp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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/Module/Module.h>
  9. #include "ImageProcessingSystemComponent.h"
  10. #include "ImageBuilderComponent.h"
  11. #include "Thumbnail/ImageThumbnailSystemComponent.h"
  12. namespace ImageProcessingAtom
  13. {
  14. class ImageProcessingModule
  15. : public AZ::Module
  16. {
  17. public:
  18. AZ_RTTI(ImageProcessingModule, "{A5392495-DD0E-4719-948A-B98DBAE88197}", AZ::Module);
  19. ImageProcessingModule()
  20. : AZ::Module()
  21. {
  22. // Push results of the components' ::CreateDescriptor() into m_descriptors here.
  23. m_descriptors.insert(m_descriptors.end(), {
  24. Thumbnails::ImageThumbnailSystemComponent::CreateDescriptor(),
  25. ImageProcessingSystemComponent::CreateDescriptor(), // system component for editor
  26. BuilderPluginComponent::CreateDescriptor(), // builder component for AP
  27. });
  28. }
  29. /**
  30. * Add required SystemComponents to the SystemEntity.
  31. */
  32. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  33. {
  34. return AZ::ComponentTypeList{
  35. azrtti_typeid<ImageProcessingSystemComponent>(),
  36. azrtti_typeid<Thumbnails::ImageThumbnailSystemComponent>(),
  37. };
  38. }
  39. };
  40. }
  41. #if defined(O3DE_GEM_NAME)
  42. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME), ImageProcessingAtom::ImageProcessingModule)
  43. #else
  44. AZ_DECLARE_MODULE_CLASS(Gem_ImageProcessingAtom, ImageProcessingAtom::ImageProcessingModule)
  45. #endif