EntityComponentFixture.cpp 1.2 KB

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. #include <AzFramework/Components/TransformComponent.h>
  9. #include <Integration/Components/ActorComponent.h>
  10. #include <Integration/Components/AnimGraphComponent.h>
  11. #include <Integration/Components/SimpleMotionComponent.h>
  12. #include <Tests/Integration/EntityComponentFixture.h>
  13. namespace EMotionFX
  14. {
  15. void EntityComponentFixture::SetUp()
  16. {
  17. AZ::Debug::TraceMessageBus::Handler::BusConnect();
  18. SystemComponentFixture::SetUp();
  19. m_app.RegisterComponentDescriptor(Integration::ActorComponent::CreateDescriptor());
  20. m_app.RegisterComponentDescriptor(Integration::AnimGraphComponent::CreateDescriptor());
  21. m_app.RegisterComponentDescriptor(Integration::SimpleMotionComponent::CreateDescriptor());
  22. m_app.RegisterComponentDescriptor(AzFramework::TransformComponent::CreateDescriptor());
  23. }
  24. void EntityComponentFixture::TearDown()
  25. {
  26. SystemComponentFixture::TearDown();
  27. AZ::Debug::TraceMessageBus::Handler::BusDisconnect();
  28. }
  29. } // namespace EMotionFX