GradientSignalModule.cpp 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 <GradientSignalModule.h>
  9. #include <GradientSignalSystemComponent.h>
  10. #include <GradientSignal/Components/SmoothStepGradientComponent.h>
  11. #include <GradientSignal/Components/SurfaceAltitudeGradientComponent.h>
  12. #include <GradientSignal/Components/SurfaceSlopeGradientComponent.h>
  13. #include <GradientSignal/Components/MixedGradientComponent.h>
  14. #include <GradientSignal/Components/ImageGradientComponent.h>
  15. #include <GradientSignal/Components/ConstantGradientComponent.h>
  16. #include <GradientSignal/Components/ThresholdGradientComponent.h>
  17. #include <GradientSignal/Components/LevelsGradientComponent.h>
  18. #include <GradientSignal/Components/ReferenceGradientComponent.h>
  19. #include <GradientSignal/Components/InvertGradientComponent.h>
  20. #include <GradientSignal/Components/DitherGradientComponent.h>
  21. #include <GradientSignal/Components/PosterizeGradientComponent.h>
  22. #include <GradientSignal/Components/ShapeAreaFalloffGradientComponent.h>
  23. #include <GradientSignal/Components/PerlinGradientComponent.h>
  24. #include <GradientSignal/Components/RandomGradientComponent.h>
  25. #include <GradientSignal/Components/GradientTransformComponent.h>
  26. #include <GradientSignal/Components/SurfaceMaskGradientComponent.h>
  27. #include <GradientSignal/Components/GradientSurfaceDataComponent.h>
  28. namespace GradientSignal
  29. {
  30. GradientSignalModule::GradientSignalModule()
  31. {
  32. m_descriptors.insert(m_descriptors.end(), {
  33. GradientSignalSystemComponent::CreateDescriptor(),
  34. SmoothStepGradientComponent::CreateDescriptor(),
  35. SurfaceAltitudeGradientComponent::CreateDescriptor(),
  36. SurfaceSlopeGradientComponent::CreateDescriptor(),
  37. MixedGradientComponent::CreateDescriptor(),
  38. ImageGradientComponent::CreateDescriptor(),
  39. ConstantGradientComponent::CreateDescriptor(),
  40. ThresholdGradientComponent::CreateDescriptor(),
  41. LevelsGradientComponent::CreateDescriptor(),
  42. ReferenceGradientComponent::CreateDescriptor(),
  43. InvertGradientComponent::CreateDescriptor(),
  44. DitherGradientComponent::CreateDescriptor(),
  45. PosterizeGradientComponent::CreateDescriptor(),
  46. ShapeAreaFalloffGradientComponent::CreateDescriptor(),
  47. PerlinGradientComponent::CreateDescriptor(),
  48. RandomGradientComponent::CreateDescriptor(),
  49. GradientTransformComponent::CreateDescriptor(),
  50. SurfaceMaskGradientComponent::CreateDescriptor(),
  51. GradientSurfaceDataComponent::CreateDescriptor(),
  52. });
  53. }
  54. AZ::ComponentTypeList GradientSignalModule::GetRequiredSystemComponents() const
  55. {
  56. return AZ::ComponentTypeList{
  57. azrtti_typeid<GradientSignalSystemComponent>(),
  58. };
  59. }
  60. }
  61. #if !defined(GRADIENTSIGNAL_EDITOR)
  62. #if defined(O3DE_GEM_NAME)
  63. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME), GradientSignal::GradientSignalModule)
  64. #else
  65. AZ_DECLARE_MODULE_CLASS(Gem_GradientSignal, GradientSignal::GradientSignalModule)
  66. #endif
  67. #endif