EditorWhiteBoxPolygonModifierBus.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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 polygon related changes.
  14. class EditorWhiteBoxPolygonModifierNotifications : 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 OnPolygonModifierUpdatedPolygonHandle(
  20. [[maybe_unused]] const Api::PolygonHandle& previousPolygonHandle,
  21. [[maybe_unused]] const Api::PolygonHandle& nextPolygonHandle)
  22. {
  23. }
  24. protected:
  25. ~EditorWhiteBoxPolygonModifierNotifications() = default;
  26. };
  27. using EditorWhiteBoxPolygonModifierNotificationBus = AZ::EBus<EditorWhiteBoxPolygonModifierNotifications>;
  28. } // namespace WhiteBox