AWSClientAuthModule.cpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 <AWSClientAuthModule.h>
  9. #include <AWSClientAuthSystemComponent.h>
  10. #if AWSCLIENTAUTH_EDITOR
  11. #include <AWSClientAuthEditorSystemComponent.h>
  12. #endif
  13. namespace AWSClientAuth
  14. {
  15. AWSClientAuthModule::AWSClientAuthModule()
  16. : AZ::Module()
  17. {
  18. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  19. m_descriptors.insert(m_descriptors.end(), {
  20. #if defined(AWSCLIENTAUTH_EDITOR)
  21. AWSClientAuthEditorSystemComponent::CreateDescriptor()
  22. #else
  23. AWSClientAuthSystemComponent::CreateDescriptor()
  24. #endif
  25. });
  26. }
  27. /**
  28. * Add required SystemComponents to the SystemEntity.
  29. */
  30. AZ::ComponentTypeList AWSClientAuthModule::GetRequiredSystemComponents() const
  31. {
  32. return AZ::ComponentTypeList{
  33. #if defined(AWSCLIENTAUTH_EDITOR)
  34. azrtti_typeid<AWSClientAuthEditorSystemComponent>(),
  35. #else
  36. azrtti_typeid<AWSClientAuthSystemComponent>(),
  37. #endif
  38. };
  39. }
  40. }
  41. #if defined(O3DE_GEM_NAME)
  42. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME), AWSClientAuth::AWSClientAuthModule)
  43. #else
  44. AZ_DECLARE_MODULE_CLASS(Gem_AWSClientAuth, AWSClientAuth::AWSClientAuthModule)
  45. #endif