ScriptCanvasGem.cpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. #if defined(SCRIPTCANVAS_EDITOR)
  9. #include <ScriptCanvasGem.h>
  10. #include <AzCore/Component/Entity.h>
  11. #include <AzCore/Component/Component.h>
  12. #include <AzCore/Serialization/SerializeContext.h>
  13. #include <AzCore/Component/ComponentApplication.h>
  14. #include <AzCore/Component/ComponentApplicationBus.h>
  15. #include <AzFramework/API/ApplicationAPI.h>
  16. #include <AzFramework/Asset/SimpleAsset.h>
  17. #include <SystemComponent.h>
  18. #include <ScriptCanvas/Core/Graph.h>
  19. #include <ScriptCanvas/Data/DataRegistry.h>
  20. #include <ScriptCanvas/Libraries/Libraries.h>
  21. #include <ScriptCanvas/Debugger/Debugger.h>
  22. #include <ScriptCanvas/Variable/GraphVariableManagerComponent.h>
  23. namespace ScriptCanvas
  24. {
  25. ////////////////////////////////////////////////////////////////////////////
  26. // ScriptCanvasModule
  27. ////////////////////////////////////////////////////////////////////////////
  28. //! Create ComponentDescriptors and add them to the list.
  29. //! The descriptors will be registered at the appropriate time.
  30. //! The descriptors will be destroyed (and thus unregistered) at the appropriate time.
  31. ScriptCanvasModule::ScriptCanvasModule()
  32. : ScriptCanvasModuleCommon()
  33. {
  34. }
  35. AZ::ComponentTypeList ScriptCanvasModule::GetRequiredSystemComponents() const
  36. {
  37. return GetCommonSystemComponents();
  38. }
  39. }
  40. #if defined(O3DE_GEM_NAME)
  41. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME), ScriptCanvas::ScriptCanvasModule)
  42. #else
  43. AZ_DECLARE_MODULE_CLASS(Gem_ScriptCanvas, ScriptCanvas::ScriptCanvasModule)
  44. #endif
  45. #endif // !SCRIPTCANVAS_EDITOR