SimulatedObjectBus.h 841 B

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/EBus/EBus.h>
  10. namespace EMotionFX
  11. {
  12. /**
  13. * EMotion FX Anim Graph Editor Request Bus
  14. * Used for making requests to anim graph editor.
  15. */
  16. class SimulatedObjectRequests
  17. : public AZ::EBusTraits
  18. {
  19. public:
  20. /**
  21. * Called whenever something inside an object changes that influences the simulated object widget.
  22. * @param[in] object The object that changed and requests the UI sync.
  23. */
  24. virtual void UpdateWidget() {}
  25. };
  26. using SimulatedObjectRequestBus = AZ::EBus<SimulatedObjectRequests>;
  27. } // namespace EMotionFX