EditorWhiteBoxEdgeModifierBus.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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