EditorBlockerComponent.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  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 <AzToolsFramework/ToolsComponents/EditorComponentBase.h>
  10. #include <Components/BlockerComponent.h>
  11. #include <Vegetation/Editor/EditorAreaComponentBase.h>
  12. namespace Vegetation
  13. {
  14. class EditorBlockerComponent
  15. : public EditorAreaComponentBase<BlockerComponent, BlockerConfig>
  16. {
  17. public:
  18. using DerivedClassType = EditorBlockerComponent;
  19. using BaseClassType = EditorAreaComponentBase<BlockerComponent, BlockerConfig>;
  20. AZ_EDITOR_COMPONENT(EditorBlockerComponent, EditorBlockerComponentTypeId, BaseClassType);
  21. static void Reflect(AZ::ReflectContext* context);
  22. static constexpr const char* const s_categoryName = "Vegetation";
  23. static constexpr const char* const s_componentName = "Vegetation Layer Blocker";
  24. static constexpr const char* const s_componentDescription = "Defines an area in which dynamic vegetation cannot be placed";
  25. static constexpr const char* const s_icon = "Editor/Icons/Components/Vegetation.svg";
  26. static constexpr const char* const s_viewportIcon = "Editor/Icons/Components/Viewport/Vegetation.svg";
  27. static constexpr const char* const s_helpUrl = "https://www.o3de.org/docs/user-guide/components/reference/vegetation/vegetation-layer-blocker/";
  28. };
  29. }