GradientSignalEditorModule.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 <GradientSignalModule.h>
  10. #include <AzToolsFramework/ActionManager/ActionManagerRegistrationNotificationBus.h>
  11. namespace GradientSignal
  12. {
  13. class GradientSignalEditorModule
  14. : public GradientSignalModule
  15. {
  16. public:
  17. AZ_RTTI(GradientSignalEditorModule, "{F8AB732B-3563-4727-9326-3DF2AC42A6D8}", GradientSignalModule);
  18. AZ_CLASS_ALLOCATOR(GradientSignalEditorModule, AZ::SystemAllocator);
  19. GradientSignalEditorModule();
  20. AZ::ComponentTypeList GetRequiredSystemComponents() const override;
  21. };
  22. class GradientSignalEditorSystemComponent
  23. : public AZ::Component
  24. , public AzToolsFramework::ActionManagerRegistrationNotificationBus::Handler
  25. {
  26. public:
  27. AZ_COMPONENT(GradientSignalEditorSystemComponent, "{A3F1E796-7C69-441C-8FA1-3A4001EF2DE3}");
  28. static void Reflect(AZ::ReflectContext* context);
  29. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  30. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  31. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  32. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  33. // ActionManagerRegistrationNotificationBus overrides ...
  34. void OnActionContextModeBindingHook() override;
  35. private:
  36. // AZ::Component
  37. void Activate() override;
  38. void Deactivate() override;
  39. };
  40. }