3
0

AWSCoreModule.cpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 <AzCore/Module/Module.h>
  9. #include <AWSCoreModule.h>
  10. #include <AWSCoreSystemComponent.h>
  11. #include <ScriptCanvas/AWSScriptBehaviorsComponent.h>
  12. namespace AWSCore
  13. {
  14. AWSCoreModule::AWSCoreModule()
  15. : AZ::Module()
  16. {
  17. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  18. m_descriptors.insert(m_descriptors.end(), {
  19. AWSCoreSystemComponent::CreateDescriptor(),
  20. AWSScriptBehaviorsComponent::CreateDescriptor(),
  21. });
  22. }
  23. /**
  24. * Add required SystemComponents to the SystemEntity.
  25. */
  26. AZ::ComponentTypeList AWSCoreModule::GetRequiredSystemComponents() const
  27. {
  28. return AZ::ComponentTypeList{
  29. azrtti_typeid<AWSCoreSystemComponent>(),
  30. azrtti_typeid<AWSScriptBehaviorsComponent>()
  31. };
  32. }
  33. }
  34. // DO NOT MODIFY THIS LINE UNLESS YOU RENAME THE GEM
  35. // The first parameter should be GemName_GemIdLower
  36. // The second should be the fully qualified name of the class above
  37. AZ_DECLARE_MODULE_CLASS(Gem_AWSCore, AWSCore::AWSCoreModule)