EditorLevelSettingsComponent.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 <LmbrCentral/Component/EditorWrappedComponentBase.h>
  10. #include <Components/LevelSettingsComponent.h>
  11. namespace Vegetation
  12. {
  13. class EditorLevelSettingsComponent
  14. : public LmbrCentral::EditorWrappedComponentBase<LevelSettingsComponent, LevelSettingsConfig>
  15. {
  16. public:
  17. using BaseClassType = LmbrCentral::EditorWrappedComponentBase<LevelSettingsComponent, LevelSettingsConfig>;
  18. AZ_EDITOR_COMPONENT(EditorLevelSettingsComponent, "{F2EF4820-88D1-41C3-BFB3-BAC3C7B494E3}", BaseClassType);
  19. static void Reflect(AZ::ReflectContext* context);
  20. static constexpr const char* const s_categoryName = "Vegetation";
  21. static constexpr const char* const s_componentName = "Vegetation System Settings";
  22. static constexpr const char* const s_componentDescription = "The vegetation system settings for this level/map.";
  23. static constexpr const char* const s_icon = "Editor/Icons/Components/Vegetation.svg";
  24. static constexpr const char* const s_viewportIcon = "Editor/Icons/Components/Viewport/Vegetation.svg";
  25. static constexpr const char* const s_helpUrl = "https://o3de.org/docs/user-guide/components/reference/";
  26. private:
  27. AZ::u32 ConfigurationChanged() override;
  28. bool m_useEditorMaxInstanceProcessTimeMicroseconds = false;
  29. int m_editorMaxInstanceProcessTimeMicroseconds = 33000;
  30. };
  31. } // namespace Vegetation