ScriptEventsBuilderComponent.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 "ScriptEventsBuilderWorker.h"
  10. #include <AssetBuilderSDK/AssetBuilderBusses.h>
  11. #include <AssetBuilderSDK/AssetBuilderSDK.h>
  12. #include <AzCore/Component/Component.h>
  13. namespace ScriptEventsBuilder
  14. {
  15. //! ScriptEventsBuilder is responsible for turning editor ScriptEvents Assets into runtime script canvas assets
  16. class ScriptEventsBuilderComponent
  17. : public AZ::Component
  18. {
  19. public:
  20. AZ_COMPONENT(ScriptEventsBuilderComponent, "{A402F019-0DD4-4CFF-B8A0-A90F818021E4}")
  21. static void Reflect(AZ::ReflectContext* context);
  22. ScriptEventsBuilderComponent() = default;
  23. ~ScriptEventsBuilderComponent() override = default;
  24. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  25. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  26. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  27. //////////////////////////////////////////////////////////////////////////
  28. // AZ::Component
  29. void Activate() override;
  30. void Deactivate() override;
  31. //////////////////////////////////////////////////////////////////////////
  32. private:
  33. ScriptEventsBuilderComponent(const ScriptEventsBuilderComponent&) = delete;
  34. Worker m_scriptEventsBuilder;
  35. };
  36. }