EditorAreaBlenderComponent.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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/EditorVisibilityBus.h>
  10. #include <Components/AreaBlenderComponent.h>
  11. #include <Vegetation/Editor/EditorAreaComponentBase.h>
  12. namespace Vegetation
  13. {
  14. class EditorAreaBlenderComponent
  15. : public EditorAreaComponentBase<AreaBlenderComponent, AreaBlenderConfig>
  16. {
  17. public:
  18. using DerivedClassType = EditorAreaBlenderComponent;
  19. using BaseClassType = EditorAreaComponentBase<AreaBlenderComponent, AreaBlenderConfig>;
  20. AZ_EDITOR_COMPONENT(EditorAreaBlenderComponent, EditorAreaBlenderComponentTypeId, BaseClassType);
  21. static void Reflect(AZ::ReflectContext* context);
  22. // AZ::Component overrides ...
  23. void Init() override;
  24. void Activate() override;
  25. AZ::u32 ConfigurationChanged() override;
  26. static constexpr const char* const s_categoryName = "Vegetation";
  27. static constexpr const char* const s_componentName = "Vegetation Layer Blender";
  28. static constexpr const char* const s_componentDescription = "Combines a collection of vegetation areas and applies them in a specified order";
  29. static constexpr const char* const s_icon = "Editor/Icons/Components/Vegetation.svg";
  30. static constexpr const char* const s_viewportIcon = "Editor/Icons/Components/Viewport/Vegetation.svg";
  31. static constexpr const char* const s_helpUrl = "https://www.o3de.org/docs/user-guide/components/reference/vegetation/vegetation-layer-blender/";
  32. private:
  33. void ForceOneEntry();
  34. };
  35. }