RecastNavigationEditorSystemComponent.cpp 2.2 KB

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