RecastNavigationSystemComponent.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. #pragma once
  9. #include <AzCore/Component/Component.h>
  10. #include <AzCore/Component/TickBus.h>
  11. #include <RecastNavigation/RecastNavigationBus.h>
  12. namespace RecastNavigation
  13. {
  14. class RecastNavigationSystemComponent
  15. : public AZ::Component
  16. , protected RecastNavigationRequestBus::Handler
  17. , public AZ::TickBus::Handler
  18. {
  19. public:
  20. AZ_COMPONENT(RecastNavigationSystemComponent, "{9d7ae509-b1db-4889-98bb-941a3f672ca3}");
  21. static void Reflect(AZ::ReflectContext* context);
  22. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  23. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  24. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  25. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  26. RecastNavigationSystemComponent();
  27. ~RecastNavigationSystemComponent() override;
  28. protected:
  29. //! AZ::Component overrides ...
  30. void Init() override;
  31. void Activate() override;
  32. void Deactivate() override;
  33. //! AZTickBus overrides ...
  34. void OnTick(float deltaTime, AZ::ScriptTimePoint time) override;
  35. };
  36. } // namespace RecastNavigation