3
0

EditorWhiteBoxEdgeModifierBus.h 1.0 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/Component/ComponentBus.h>
  10. #include <WhiteBox/WhiteBoxToolApi.h>
  11. namespace WhiteBox
  12. {
  13. //! Notification bus for edge related changes
  14. class EditorWhiteBoxEdgeModifierNotifications : public AZ::EntityComponentBus
  15. {
  16. public:
  17. //! Was the polygon handle changed/updated by the polygon modifier.
  18. //! @note This will happen during an append/extrusion.
  19. virtual void OnEdgeModifierUpdatedEdgeHandle(
  20. [[maybe_unused]] Api::EdgeHandle previousEdgeHandle, [[maybe_unused]] Api::EdgeHandle nextEdgeHandle)
  21. {
  22. }
  23. protected:
  24. ~EditorWhiteBoxEdgeModifierNotifications() = default;
  25. };
  26. using EditorWhiteBoxEdgeModifierNotificationBus = AZ::EBus<EditorWhiteBoxEdgeModifierNotifications>;
  27. } // namespace WhiteBox