AWSCoreEditorModule.cpp 1.2 KB

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