GeoreferencingEditorSystemComponent.cpp 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 "GeoreferencingEditorSystemComponent.h"
  9. #include <AzCore/Serialization/SerializeContext.h>
  10. #include <Georeferencing/GeoreferencingTypeIds.h>
  11. namespace Georeferencing
  12. {
  13. AZ_COMPONENT_IMPL(
  14. GeoreferencingEditorSystemComponent,
  15. "GeoreferencingEditorSystemComponent",
  16. GeoreferencingEditorSystemComponentTypeId,
  17. BaseSystemComponent);
  18. void GeoreferencingEditorSystemComponent::Reflect(AZ::ReflectContext* context)
  19. {
  20. if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
  21. {
  22. serializeContext->Class<GeoreferencingEditorSystemComponent, GeoreferencingSystemComponent>()->Version(0);
  23. }
  24. }
  25. void GeoreferencingEditorSystemComponent::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)
  26. {
  27. BaseSystemComponent::GetProvidedServices(provided);
  28. provided.push_back(AZ_CRC_CE("GeoreferencingEditorService"));
  29. }
  30. void GeoreferencingEditorSystemComponent::GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible)
  31. {
  32. BaseSystemComponent::GetIncompatibleServices(incompatible);
  33. incompatible.push_back(AZ_CRC_CE("GeoreferencingEditorService"));
  34. }
  35. void GeoreferencingEditorSystemComponent::GetRequiredServices([[maybe_unused]] AZ::ComponentDescriptor::DependencyArrayType& required)
  36. {
  37. BaseSystemComponent::GetRequiredServices(required);
  38. }
  39. void GeoreferencingEditorSystemComponent::GetDependentServices([[maybe_unused]] AZ::ComponentDescriptor::DependencyArrayType& dependent)
  40. {
  41. BaseSystemComponent::GetDependentServices(dependent);
  42. }
  43. void GeoreferencingEditorSystemComponent::Activate()
  44. {
  45. GeoreferencingSystemComponent::Activate();
  46. AzToolsFramework::EditorEvents::Bus::Handler::BusConnect();
  47. }
  48. void GeoreferencingEditorSystemComponent::Deactivate()
  49. {
  50. AzToolsFramework::EditorEvents::Bus::Handler::BusDisconnect();
  51. GeoreferencingSystemComponent::Deactivate();
  52. }
  53. } // namespace Georeferencing