MotionMatchingEditorModule.cpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 <MotionMatchingModuleInterface.h>
  9. #include <MotionMatchingEditorSystemComponent.h>
  10. namespace EMotionFX::MotionMatching
  11. {
  12. class MotionMatchingEditorModule
  13. : public MotionMatchingModuleInterface
  14. {
  15. public:
  16. AZ_RTTI(MotionMatchingEditorModule, "{cf4381d1-0207-4ef8-85f0-6c88ec28a7b6}", MotionMatchingModuleInterface);
  17. AZ_CLASS_ALLOCATOR(MotionMatchingEditorModule, AZ::SystemAllocator);
  18. MotionMatchingEditorModule()
  19. {
  20. m_descriptors.insert(m_descriptors.end(),
  21. {
  22. MotionMatchingEditorSystemComponent::CreateDescriptor(),
  23. });
  24. }
  25. /// Add required SystemComponents to the SystemEntity. Non-SystemComponents should not be added here.
  26. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  27. {
  28. return AZ::ComponentTypeList
  29. {
  30. azrtti_typeid<MotionMatchingEditorSystemComponent>(),
  31. };
  32. }
  33. };
  34. }// namespace EMotionFX::MotionMatching
  35. #if defined(O3DE_GEM_NAME)
  36. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME, _Editor), EMotionFX::MotionMatching::MotionMatchingEditorModule)
  37. #else
  38. AZ_DECLARE_MODULE_CLASS(Gem_MotionMatching_Editor, EMotionFX::MotionMatching::MotionMatchingEditorModule)
  39. #endif