You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Gems/Vegetation/Code/Source/VegetationEditorModule.cpp

76 lines
3.3 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <VegetationEditorModule.h>
#include <Editor/EditorAreaBlenderComponent.h>
#include <Editor/EditorBlockerComponent.h>
#include <Editor/EditorDescriptorListCombinerComponent.h>
#include <Editor/EditorDescriptorListComponent.h>
#include <Editor/EditorDescriptorWeightSelectorComponent.h>
#include <Editor/EditorDistanceBetweenFilterComponent.h>
#include <Editor/EditorDistributionFilterComponent.h>
#include <Editor/EditorLevelSettingsComponent.h>
#include <Editor/EditorMeshBlockerComponent.h>
#include <Editor/EditorPositionModifierComponent.h>
#include <Editor/EditorRotationModifierComponent.h>
#include <Editor/EditorScaleModifierComponent.h>
#include <Editor/EditorShapeIntersectionFilterComponent.h>
#include <Editor/EditorSlopeAlignmentModifierComponent.h>
#include <Editor/EditorSpawnerComponent.h>
#include <Editor/EditorSurfaceAltitudeFilterComponent.h>
#include <Editor/EditorSurfaceMaskDepthFilterComponent.h>
#include <Editor/EditorSurfaceMaskFilterComponent.h>
#include <Editor/EditorSurfaceSlopeFilterComponent.h>
#include <Editor/EditorVegetationSystemComponent.h>
#include <Debugger/EditorDebugComponent.h>
#include <Debugger/EditorAreaDebugComponent.h>
namespace Vegetation
{
VegetationEditorModule::VegetationEditorModule()
: VegetationModule()
{
m_descriptors.insert(m_descriptors.end(), {
EditorAreaBlenderComponent::CreateDescriptor(),
EditorBlockerComponent::CreateDescriptor(),
EditorDescriptorListCombinerComponent::CreateDescriptor(),
EditorDescriptorListComponent::CreateDescriptor(),
EditorDescriptorWeightSelectorComponent::CreateDescriptor(),
EditorDistanceBetweenFilterComponent::CreateDescriptor(),
EditorDistributionFilterComponent::CreateDescriptor(),
EditorLevelSettingsComponent::CreateDescriptor(),
EditorMeshBlockerComponent::CreateDescriptor(),
EditorPositionModifierComponent::CreateDescriptor(),
EditorRotationModifierComponent::CreateDescriptor(),
EditorScaleModifierComponent::CreateDescriptor(),
EditorShapeIntersectionFilterComponent::CreateDescriptor(),
EditorSlopeAlignmentModifierComponent::CreateDescriptor(),
EditorSpawnerComponent::CreateDescriptor(),
EditorSurfaceAltitudeFilterComponent::CreateDescriptor(),
EditorSurfaceMaskDepthFilterComponent::CreateDescriptor(),
EditorSurfaceMaskFilterComponent::CreateDescriptor(),
EditorSurfaceSlopeFilterComponent::CreateDescriptor(),
EditorVegetationSystemComponent::CreateDescriptor(),
EditorDebugComponent::CreateDescriptor(),
EditorAreaDebugComponent::CreateDescriptor(),
});
}
AZ::ComponentTypeList VegetationEditorModule::GetRequiredSystemComponents() const
{
AZ::ComponentTypeList requiredComponents = VegetationModule::GetRequiredSystemComponents();
requiredComponents.push_back(azrtti_typeid<EditorVegetationSystemComponent>());
return requiredComponents;
}
}
AZ_DECLARE_MODULE_CLASS(Gem_VegetationEditor, Vegetation::VegetationEditorModule)