PhysicsSetupManipulatorBus.h 930 B

123456789101112131415161718192021222324252627
  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. namespace EMotionFX
  11. {
  12. //! Provides a bus to tell the physics setup manipulators when their underlying properties have changed.
  13. class PhysicsSetupManipulatorRequests
  14. : public AZ::EBusTraits
  15. {
  16. public:
  17. static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Multiple;
  18. static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::Single;
  19. //! Called when underlying properties are changed, so that the manipulators can be updated.
  20. virtual void OnUnderlyingPropertiesChanged() {}
  21. };
  22. using PhysicsSetupManipulatorRequestBus = AZ::EBus<PhysicsSetupManipulatorRequests>;
  23. } //