LyShineExamplesModule.cpp 1.6 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 "LyShineExamplesSystemComponent.h"
  9. #include "UiTestScrollBoxDataProviderComponent.h"
  10. #include "UiCustomImageComponent.h"
  11. #include <IGem.h>
  12. namespace LyShineExamples
  13. {
  14. class LyShineExamplesModule
  15. : public CryHooksModule
  16. {
  17. public:
  18. AZ_RTTI(LyShineExamplesModule, "{BC028F50-D2C4-4A71-84D1-F1BDC727019A}", CryHooksModule);
  19. LyShineExamplesModule()
  20. : CryHooksModule()
  21. {
  22. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  23. m_descriptors.insert(m_descriptors.end(), {
  24. LyShineExamplesSystemComponent::CreateDescriptor(),
  25. UiTestScrollBoxDataProviderComponent::CreateDescriptor(),
  26. UiCustomImageComponent::CreateDescriptor(),
  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<LyShineExamplesSystemComponent>(),
  36. };
  37. }
  38. };
  39. }
  40. // DO NOT MODIFY THIS LINE UNLESS YOU RENAME THE GEM
  41. // The first parameter should be GemName_GemIdLower
  42. // The second should be the fully qualified name of the class above
  43. AZ_DECLARE_MODULE_CLASS(Gem_LyShineExamples, LyShineExamples::LyShineExamplesModule)