AnimGraphEditorBus.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #include <EMotionFX/Source/MotionSet.h>
  11. namespace EMotionFX
  12. {
  13. /**
  14. * EMotion FX Anim Graph Editor Request Bus
  15. * Used for making requests to anim graph editor.
  16. */
  17. class AnimGraphEditorRequests
  18. : public AZ::EBusTraits
  19. {
  20. public:
  21. /**
  22. * Called whenever something inside an object changes that influences the visual graph or any other UI element.
  23. * @param[in] object The object that changed and requests the UI sync.
  24. */
  25. virtual MotionSet* GetSelectedMotionSet() { return nullptr; }
  26. virtual void UpdateMotionSetComboBox() {}
  27. };
  28. using AnimGraphEditorRequestBus = AZ::EBus<AnimGraphEditorRequests>;
  29. /**
  30. * EMotion FX Anim Graph Notification Bus
  31. * Used for monitoring events from the anim graph editor.
  32. */
  33. class AnimGraphEditorNotifications
  34. : public AZ::EBusTraits
  35. {
  36. public:
  37. virtual void OnFocusIn() {}
  38. virtual void OnShow() {}
  39. };
  40. using AnimGraphEditorNotificationBus = AZ::EBus<AnimGraphEditorNotifications>;
  41. } // namespace EMotionFX