ScriptCanvasBuilderComponent.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. #pragma once
  9. #include <AzCore/Component/Component.h>
  10. #include <AssetBuilderSDK/AssetBuilderBusses.h>
  11. #include <AssetBuilderSDK/AssetBuilderSDK.h>
  12. #include <Builder/ScriptCanvasBuilderDataSystem.h>
  13. #include "ScriptCanvasBuilderWorker.h"
  14. namespace ScriptCanvasBuilder
  15. {
  16. //! ScriptCanvasBuilder is responsible for turning editor ScriptCanvas Assets into runtime script canvas assets
  17. class PluginComponent
  18. : public AZ::Component
  19. {
  20. public:
  21. AZ_COMPONENT(PluginComponent, "{F8286B21-E751-4745-8BC4-512F190215FF}")
  22. static void Reflect(AZ::ReflectContext* context);
  23. PluginComponent() = default;
  24. ~PluginComponent() override = default;
  25. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  26. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  27. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  28. //////////////////////////////////////////////////////////////////////////
  29. // AZ::Component
  30. void Activate() override;
  31. void Deactivate() override;
  32. //////////////////////////////////////////////////////////////////////////
  33. private:
  34. PluginComponent(const PluginComponent&) = delete;
  35. SharedHandlers m_sharedHandlers;
  36. Worker m_scriptCanvasBuilder;
  37. DataSystem m_dataSystem;
  38. };
  39. }