FastNoiseModule.cpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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. // DO NOT MODIFY THIS LINE UNLESS YOU RENAME THE GEM
  29. // The first parameter should be GemName_GemIdLower
  30. // The second should be the fully qualified name of the class above
  31. AZ_DECLARE_MODULE_CLASS(Gem_FastNoise, FastNoiseGem::FastNoiseModule)
  32. #endif