JackGraphFixture.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 <Tests/TestAssetCode/AnimGraphFactory.h>
  11. namespace EMotionFX
  12. {
  13. class Actor;
  14. class ActorInstance;
  15. class AnimGraph;
  16. class AnimGraphInstance;
  17. class MotionSet;
  18. class JackGraphFixture : public SystemComponentFixture
  19. {
  20. public:
  21. virtual void SetUp() override;
  22. virtual void TearDown() override;
  23. virtual void OnPostActorCreated() {}
  24. virtual void ConstructGraph();
  25. void Evaluate(float timeDelta);
  26. void AddValueParameter(const AZ::TypeId& typeId, const AZStd::string& name);
  27. protected:
  28. AZStd::unique_ptr<Actor> m_actor;
  29. ActorInstance* m_actorInstance = nullptr;
  30. AZStd::unique_ptr<EmptyAnimGraph> m_animGraph = nullptr;
  31. AnimGraphInstance* m_animGraphInstance = nullptr;
  32. MotionSet* m_motionSet = nullptr;
  33. };
  34. }