3
0

EditorWhiteBoxTransformModeBus.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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. //! Enumerates the different type of transform sub-modes available.
  14. enum class TransformType
  15. {
  16. Translation,
  17. Rotation,
  18. Scale
  19. };
  20. //! Request bus for White Box ComponentMode operations while in 'transform' mode.
  21. class EditorWhiteBoxTransformModeRequests : public AZ::EntityComponentBus
  22. {
  23. public:
  24. //! Change the TransformType for the WhiteBox Transform sub-mode.
  25. virtual void ChangeTransformType(TransformType subModeType) = 0;
  26. protected:
  27. ~EditorWhiteBoxTransformModeRequests() = default;
  28. };
  29. using EditorWhiteBoxTransformModeRequestBus = AZ::EBus<EditorWhiteBoxTransformModeRequests>;
  30. } // namespace WhiteBox