EditorRotationModifierComponent.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 <Components/RotationModifierComponent.h>
  10. #include <Vegetation/Editor/EditorVegetationComponentBase.h>
  11. namespace Vegetation
  12. {
  13. class EditorRotationModifierComponent
  14. : public EditorVegetationComponentBase<RotationModifierComponent, RotationModifierConfig>
  15. {
  16. public:
  17. using DerivedClassType = EditorRotationModifierComponent;
  18. using BaseClassType = EditorVegetationComponentBase<RotationModifierComponent, RotationModifierConfig>;
  19. AZ_EDITOR_COMPONENT(EditorRotationModifierComponent, EditorRotationModifierComponentTypeId, BaseClassType);
  20. static void Reflect(AZ::ReflectContext* context);
  21. //////////////////////////////////////////////////////////////////////////
  22. // AZ::Component interface implementation
  23. void Activate() override;
  24. static constexpr const char* const s_categoryName = "Vegetation Modifiers";
  25. static constexpr const char* const s_componentName = "Vegetation Rotation Modifier";
  26. static constexpr const char* const s_componentDescription = "Offsets the rotation of the vegetation";
  27. static constexpr const char* const s_icon = "Editor/Icons/Components/VegetationModifier.svg";
  28. static constexpr const char* const s_viewportIcon = "Editor/Icons/Components/Viewport/VegetationModifier.svg";
  29. static constexpr const char* const s_helpUrl = "https://www.o3de.org/docs/user-guide/components/reference/vegetation-modifiers/vegetation-rotation-modifier/";
  30. };
  31. }