MotionMatchingModuleInterface.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 <AzCore/Memory/SystemAllocator.h>
  9. #include <AzCore/Module/Module.h>
  10. #include <MotionMatchingSystemComponent.h>
  11. namespace EMotionFX::MotionMatching
  12. {
  13. class MotionMatchingModuleInterface
  14. : public AZ::Module
  15. {
  16. public:
  17. AZ_RTTI(MotionMatchingModuleInterface, "{33e8e826-b143-4008-89f3-9a46ad3de4fe}", AZ::Module);
  18. AZ_CLASS_ALLOCATOR(MotionMatchingModuleInterface, AZ::SystemAllocator);
  19. MotionMatchingModuleInterface()
  20. {
  21. m_descriptors.insert(m_descriptors.end(),
  22. {
  23. MotionMatchingSystemComponent::CreateDescriptor(),
  24. });
  25. }
  26. /// Add required SystemComponents to the SystemEntity.
  27. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  28. {
  29. return AZ::ComponentTypeList
  30. {
  31. azrtti_typeid<MotionMatchingSystemComponent>(),
  32. };
  33. }
  34. };
  35. }// namespace EMotionFX::MotionMatching