SurfaceDataEditorModule.cpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 <SurfaceDataEditorModule.h>
  9. #include <SurfaceData/Components/SurfaceDataSystemComponent.h>
  10. #include <Editor/EditorSurfaceDataSystemComponent.h>
  11. #include <Editor/EditorSurfaceDataColliderComponent.h>
  12. #include <Editor/EditorSurfaceDataShapeComponent.h>
  13. namespace SurfaceData
  14. {
  15. SurfaceDataEditorModule::SurfaceDataEditorModule()
  16. {
  17. m_descriptors.insert(m_descriptors.end(), {
  18. EditorSurfaceDataSystemComponent::CreateDescriptor(),
  19. EditorSurfaceDataColliderComponent::CreateDescriptor(),
  20. EditorSurfaceDataShapeComponent::CreateDescriptor()
  21. });
  22. }
  23. AZ::ComponentTypeList SurfaceDataEditorModule::GetRequiredSystemComponents() const
  24. {
  25. AZ::ComponentTypeList requiredComponents = SurfaceDataModule::GetRequiredSystemComponents();
  26. requiredComponents.push_back(azrtti_typeid<EditorSurfaceDataSystemComponent>());
  27. return requiredComponents;
  28. }
  29. }
  30. #if defined(O3DE_GEM_NAME)
  31. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME, _Editor), SurfaceData::SurfaceDataEditorModule)
  32. #else
  33. AZ_DECLARE_MODULE_CLASS(Gem_SurfaceData_Editor, SurfaceData::SurfaceDataEditorModule)
  34. #endif