EditorWhiteBoxSystemComponent.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 "WhiteBoxSystemComponent.h"
  10. #include <AzToolsFramework/ActionManager/ActionManagerRegistrationNotificationBus.h>
  11. namespace WhiteBox
  12. {
  13. //! System component for the White Box Editor/Tool application.
  14. class EditorWhiteBoxSystemComponent
  15. : public WhiteBoxSystemComponent
  16. , public AzToolsFramework::ActionManagerRegistrationNotificationBus::Handler
  17. {
  18. public:
  19. AZ_COMPONENT(EditorWhiteBoxSystemComponent, "{42D40E84-A8C4-474B-A4D6-B665CCEA8A83}", WhiteBoxSystemComponent);
  20. static void Reflect(AZ::ReflectContext* context);
  21. // ActionManagerRegistrationNotificationBus overrides ...
  22. void OnActionContextModeRegistrationHook() override;
  23. void OnActionUpdaterRegistrationHook() override;
  24. void OnActionRegistrationHook() override;
  25. void OnActionContextModeBindingHook() override;
  26. void OnMenuBindingHook() override;
  27. private:
  28. // AZ::Component ...
  29. void Activate() override;
  30. void Deactivate() override;
  31. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  32. };
  33. } // namespace WhiteBox