AnimGraphTransitionFixture.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 "SystemComponentFixture.h"
  10. #include <AzCore/std/smart_ptr/unique_ptr.h>
  11. #include <Tests/TestAssetCode/AnimGraphFactory.h>
  12. namespace EMotionFX
  13. {
  14. class Actor;
  15. class ActorInstance;
  16. class AnimGraph;
  17. class AnimGraphInstance;
  18. class AnimGraphMotionNode;
  19. class AnimGraphStateMachine;
  20. class MotionSet;
  21. class AnimGraphTransitionFixture
  22. : public SystemComponentFixture
  23. {
  24. public:
  25. void SetUp() override;
  26. void TearDown() override;
  27. protected:
  28. AnimGraphStateMachine* m_stateMachine = nullptr;
  29. AnimGraphInstance* m_animGraphInstance = nullptr;
  30. AnimGraphMotionNode* m_motionNodeA = nullptr;
  31. AnimGraphMotionNode* m_motionNodeB = nullptr;
  32. AZStd::unique_ptr<Actor> m_actor;
  33. AZStd::unique_ptr<TwoMotionNodeAnimGraph> m_animGraph;
  34. MotionSet* m_motionSet = nullptr;
  35. ActorInstance* m_actorInstance = nullptr;
  36. };
  37. }