EditorRecastNavigationPhysXProviderComponent.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 <AzToolsFramework/ToolsComponents/EditorComponentBase.h>
  11. #include <Components/RecastNavigationPhysXProviderComponent.h>
  12. #include <Misc/RecastNavigationPhysXProviderComponentController.h>
  13. #include <ToolsComponents/EditorComponentAdapter.h>
  14. namespace RecastNavigation
  15. {
  16. //! Editor version of @RecastNavigationPhysXProviderComponent
  17. class EditorRecastNavigationPhysXProviderComponent final
  18. : public AzToolsFramework::Components::EditorComponentAdapter<RecastNavigationPhysXProviderComponentController,
  19. RecastNavigationPhysXProviderComponent, RecastNavigationPhysXProviderConfig>
  20. {
  21. public:
  22. using BaseClass = AzToolsFramework::Components::EditorComponentAdapter<RecastNavigationPhysXProviderComponentController, RecastNavigationPhysXProviderComponent, RecastNavigationPhysXProviderConfig>;
  23. AZ_EDITOR_COMPONENT(EditorRecastNavigationPhysXProviderComponent, EditorRecastNavigationPhysXProviderComponentTypeId, BaseClass);
  24. static void Reflect(AZ::ReflectContext* context);
  25. EditorRecastNavigationPhysXProviderComponent() = default;
  26. explicit EditorRecastNavigationPhysXProviderComponent(const RecastNavigationPhysXProviderConfig& config);
  27. void Activate() override;
  28. void Deactivate() override;
  29. void BuildGameEntity(AZ::Entity* gameEntity) override;
  30. AZ::u32 OnConfigurationChanged() override;
  31. };
  32. } // namespace RecastNavigation