InAppPurchasesModule.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 "InAppPurchasesModule.h"
  9. #include "InAppPurchasesSystemComponent.h"
  10. namespace InAppPurchases
  11. {
  12. InAppPurchasesModule::InAppPurchasesModule()
  13. : AZ::Module()
  14. {
  15. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  16. m_descriptors.insert(m_descriptors.end(), {
  17. SystemComponent::CreateDescriptor(),
  18. });
  19. }
  20. /**
  21. * Add required SystemComponents to the SystemEntity.
  22. */
  23. AZ::ComponentTypeList InAppPurchasesModule::GetRequiredSystemComponents() const
  24. {
  25. return AZ::ComponentTypeList{
  26. azrtti_typeid<SystemComponent>(),
  27. };
  28. }
  29. }
  30. #if defined(O3DE_GEM_NAME)
  31. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME), InAppPurchases::InAppPurchasesModule)
  32. #else
  33. AZ_DECLARE_MODULE_CLASS(Gem_InAppPurchases, InAppPurchases::InAppPurchasesModule)
  34. #endif