EditorSimpleMotionComponentBus.h 800 B

123456789101112131415161718192021222324252627282930
  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 <AzCore/Component/ComponentBus.h>
  11. namespace EMotionFX
  12. {
  13. namespace Integration
  14. {
  15. class EditorSimpleMotionComponentRequests
  16. : public AZ::ComponentBus
  17. {
  18. public:
  19. virtual void SetPreviewInEditor(bool enable) = 0;
  20. virtual bool GetPreviewInEditor() const = 0;
  21. virtual float GetAssetDuration(const AZ::Data::AssetId& assetId) = 0;
  22. };
  23. using EditorSimpleMotionComponentRequestBus = AZ::EBus<EditorSimpleMotionComponentRequests>;
  24. }
  25. }