InAppPurchasesModule.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. // DO NOT MODIFY THIS LINE UNLESS YOU RENAME THE GEM
  31. // The first parameter should be GemName_GemIdLower
  32. // The second should be the fully qualified name of the class above
  33. AZ_DECLARE_MODULE_CLASS(Gem_InAppPurchases, InAppPurchases::InAppPurchasesModule)