EditorSpawnerComponent.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  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 <AzToolsFramework/ToolsComponents/EditorVisibilityBus.h>
  11. #include <Components/SpawnerComponent.h>
  12. #include <Vegetation/Editor/EditorAreaComponentBase.h>
  13. namespace Vegetation
  14. {
  15. class EditorSpawnerComponent
  16. : public EditorAreaComponentBase<SpawnerComponent, SpawnerConfig>
  17. {
  18. public:
  19. using DerivedClassType = EditorSpawnerComponent;
  20. using BaseClassType = EditorAreaComponentBase<SpawnerComponent, SpawnerConfig>;
  21. AZ_EDITOR_COMPONENT(EditorSpawnerComponent, EditorSpawnerComponentTypeId, BaseClassType);
  22. static void Reflect(AZ::ReflectContext* context);
  23. static constexpr const char* const s_categoryName = "Vegetation";
  24. static constexpr const char* const s_componentName = "Vegetation Layer Spawner";
  25. static constexpr const char* const s_componentDescription = "Creates dynamic vegetation in a specified area";
  26. static constexpr const char* const s_icon = "Editor/Icons/Components/Vegetation.svg";
  27. static constexpr const char* const s_viewportIcon = "Editor/Icons/Components/Viewport/Vegetation.svg";
  28. static constexpr const char* const s_helpUrl = "https://o3de.org/docs/user-guide/components/reference/vegetation/layer-spawner/";
  29. };
  30. }