GeoreferencingModuleInterface.cpp 1.7 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. #include "GeoreferencingModuleInterface.h"
  9. #include <AzCore/Memory/Memory.h>
  10. #include <Georeferencing/GeoreferencingTypeIds.h>
  11. #include <Clients/GeoreferenceLevelComponent.h>
  12. #include <Clients/GeoreferencingSystemComponent.h>
  13. namespace Georeferencing
  14. {
  15. AZ_TYPE_INFO_WITH_NAME_IMPL(GeoreferencingModuleInterface, "GeoreferencingModuleInterface", GeoreferencingModuleInterfaceTypeId);
  16. AZ_RTTI_NO_TYPE_INFO_IMPL(GeoreferencingModuleInterface, AZ::Module);
  17. AZ_CLASS_ALLOCATOR_IMPL(GeoreferencingModuleInterface, AZ::SystemAllocator);
  18. GeoreferencingModuleInterface::GeoreferencingModuleInterface()
  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(
  25. m_descriptors.end(),
  26. {
  27. GeoreferencingSystemComponent::CreateDescriptor(),
  28. GeoReferenceLevelComponent::CreateDescriptor(),
  29. });
  30. }
  31. AZ::ComponentTypeList GeoreferencingModuleInterface::GetRequiredSystemComponents() const
  32. {
  33. return AZ::ComponentTypeList{
  34. azrtti_typeid<GeoreferencingSystemComponent>(),
  35. };
  36. }
  37. } // namespace Georeferencing