MachineLearningModuleInterface.cpp 1.5 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 "MachineLearningModuleInterface.h"
  9. #include <AzCore/Memory/Memory.h>
  10. #include <MachineLearning/MachineLearningTypeIds.h>
  11. #include <MachineLearningSystemComponent.h>
  12. namespace MachineLearning
  13. {
  14. AZ_TYPE_INFO_WITH_NAME_IMPL(MachineLearningModuleInterface,
  15. "MachineLearningModuleInterface", MachineLearningModuleInterfaceTypeId);
  16. AZ_RTTI_NO_TYPE_INFO_IMPL(MachineLearningModuleInterface, AZ::Module);
  17. AZ_CLASS_ALLOCATOR_IMPL(MachineLearningModuleInterface, AZ::SystemAllocator);
  18. MachineLearningModuleInterface::MachineLearningModuleInterface()
  19. {
  20. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  21. // Add ALL components descriptors associated with this gem to m_descriptors.
  22. // This will associate the AzTypeInfo information for the components with the the SerializeContext, BehaviorContext and EditContext.
  23. // This happens through the [MyComponent]::Reflect() function.
  24. m_descriptors.insert(m_descriptors.end(), {
  25. MachineLearningSystemComponent::CreateDescriptor(),
  26. });
  27. }
  28. AZ::ComponentTypeList MachineLearningModuleInterface::GetRequiredSystemComponents() const
  29. {
  30. return AZ::ComponentTypeList{
  31. azrtti_typeid<MachineLearningSystemComponent>(),
  32. };
  33. }
  34. } // namespace MachineLearning