FastNoiseModule.cpp 1020 B

12345678910111213141516171819202122232425262728293031323334353637
  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 <FastNoiseModule.h>
  9. #include <FastNoiseSystemComponent.h>
  10. #include <FastNoiseGradientComponent.h>
  11. namespace FastNoiseGem
  12. {
  13. FastNoiseModule::FastNoiseModule()
  14. {
  15. m_descriptors.insert(m_descriptors.end(), {
  16. FastNoiseSystemComponent::CreateDescriptor(),
  17. FastNoiseGradientComponent::CreateDescriptor(),
  18. });
  19. }
  20. AZ::ComponentTypeList FastNoiseModule::GetRequiredSystemComponents() const
  21. {
  22. return AZ::ComponentTypeList{
  23. azrtti_typeid<FastNoiseSystemComponent>(),
  24. };
  25. }
  26. }
  27. #if !defined(FASTNOISE_EDITOR)
  28. #if defined(O3DE_GEM_NAME)
  29. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME), FastNoiseGem::FastNoiseModule)
  30. #else
  31. AZ_DECLARE_MODULE_CLASS(Gem_FastNoise, FastNoiseGem::FastNoiseModule)
  32. #endif
  33. #endif