SurfaceDataModule.cpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 <SurfaceDataModule.h>
  9. #include <SurfaceData/Components/SurfaceDataSystemComponent.h>
  10. #include <SurfaceData/Components/SurfaceDataColliderComponent.h>
  11. #include <SurfaceData/Components/SurfaceDataShapeComponent.h>
  12. namespace SurfaceData
  13. {
  14. SurfaceDataModule::SurfaceDataModule()
  15. {
  16. m_descriptors.insert(m_descriptors.end(), {
  17. SurfaceDataSystemComponent::CreateDescriptor(),
  18. SurfaceDataColliderComponent::CreateDescriptor(),
  19. SurfaceDataShapeComponent::CreateDescriptor(),
  20. });
  21. }
  22. AZ::ComponentTypeList SurfaceDataModule::GetRequiredSystemComponents() const
  23. {
  24. return AZ::ComponentTypeList{
  25. azrtti_typeid<SurfaceDataSystemComponent>(),
  26. };
  27. }
  28. }
  29. #if !defined(SURFACEDATA_EDITOR)
  30. #if defined(O3DE_GEM_NAME)
  31. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME), SurfaceData::SurfaceDataModule)
  32. #else
  33. AZ_DECLARE_MODULE_CLASS(Gem_SurfaceData, SurfaceData::SurfaceDataModule)
  34. #endif
  35. #endif