ScriptCanvasDeveloperGem.cpp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 <ScriptCanvasDeveloper/ScriptCanvasDeveloperGem.h>
  9. #include <ScriptCanvasDeveloper/ScriptCanvasDeveloperComponent.h>
  10. namespace ScriptCanvas::Developer
  11. {
  12. ////////////////////////////////////////////////////////////////////////////
  13. // ScriptCanvasDeveloperModule
  14. ////////////////////////////////////////////////////////////////////////////
  15. //! Create ComponentDescriptors and add them to the list.
  16. //! The descriptors will be registered at the appropriate time.
  17. //! The descriptors will be destroyed (and thus unregistered) at the appropriate time.
  18. ScriptCanvasDeveloperModule::ScriptCanvasDeveloperModule()
  19. : AZ::Module()
  20. {
  21. m_descriptors.insert(m_descriptors.end(), {
  22. ScriptCanvas::Developer::SystemComponent::CreateDescriptor()
  23. });
  24. }
  25. ScriptCanvasDeveloperModule::~ScriptCanvasDeveloperModule()
  26. {
  27. }
  28. AZ::ComponentTypeList ScriptCanvasDeveloperModule::GetRequiredSystemComponents() const
  29. {
  30. AZ::ComponentTypeList components;
  31. components.insert(components.end(), std::initializer_list<AZ::Uuid> {
  32. azrtti_typeid<ScriptCanvas::Developer::SystemComponent>(),
  33. });
  34. return components;
  35. }
  36. }
  37. #if defined(O3DE_GEM_NAME)
  38. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME), ScriptCanvas::Developer::ScriptCanvasDeveloperModule)
  39. #else
  40. AZ_DECLARE_MODULE_CLASS(Gem_ScriptCanvasDeveloper, ScriptCanvas::Developer::ScriptCanvasDeveloperModule)
  41. #endif