HttpRequestorModule.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 "HttpRequestorSystemComponent.h"
  9. #include <AzCore/Module/Module.h>
  10. namespace HttpRequestor
  11. {
  12. class HttpRequestorModule
  13. : public AZ::Module
  14. {
  15. public:
  16. AZ_RTTI(HttpRequestorModule, "{FD411E40-AF83-4F6B-A5A3-F59AB71150BF}", AZ::Module);
  17. HttpRequestorModule()
  18. : AZ::Module()
  19. {
  20. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  21. m_descriptors.insert(m_descriptors.end(), {
  22. HttpRequestorSystemComponent::CreateDescriptor(),
  23. });
  24. }
  25. /**
  26. * Add required SystemComponents to the SystemEntity.
  27. */
  28. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  29. {
  30. return AZ::ComponentTypeList{
  31. azrtti_typeid<HttpRequestorSystemComponent>(),
  32. };
  33. }
  34. };
  35. }
  36. #if defined(O3DE_GEM_NAME)
  37. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME), HttpRequestor::HttpRequestorModule)
  38. #else
  39. AZ_DECLARE_MODULE_CLASS(Gem_HttpRequestor, HttpRequestor::HttpRequestorModule)
  40. #endif