EditorModularViewportCameraComposerBus.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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/EBus/EBus.h>
  10. #include <AzFramework/Viewport/ViewportId.h>
  11. #include <AzToolsFramework/Viewport/ViewportMessages.h>
  12. namespace SandboxEditor
  13. {
  14. //! Notifications for changes to the editor modular viewport camera controller.
  15. class EditorModularViewportCameraComposerNotifications
  16. {
  17. public:
  18. //! Notify any listeners when changes have been made to the modular viewport camera settings.
  19. //! @note This is used to update any cached input channels when controls are modified.
  20. virtual void OnEditorModularViewportCameraComposerSettingsChanged() = 0;
  21. protected:
  22. ~EditorModularViewportCameraComposerNotifications() = default;
  23. };
  24. using EditorModularViewportCameraComposerNotificationBus =
  25. AZ::EBus<EditorModularViewportCameraComposerNotifications, AzToolsFramework::ViewportInteraction::ViewportNotificationsEBusTraits>;
  26. } // namespace SandboxEditor