4a4c93f866
* cherry-pick conflict fix Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com> * Missed include file Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com> * review changes. Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com> * cherry-pick merge fix Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com> * review changes. Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com> * bug fix Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com> * review changes. Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com> * compile fix Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com> * compile fix Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com>
50 lines
1.9 KiB
C++
50 lines
1.9 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 <EditorTerrainModule.h>
|
|
#include <EditorComponents/EditorTerrainHeightGradientListComponent.h>
|
|
#include <EditorComponents/EditorTerrainLayerSpawnerComponent.h>
|
|
#include <EditorComponents/EditorTerrainSurfaceGradientListComponent.h>
|
|
#include <EditorComponents/EditorTerrainSystemComponent.h>
|
|
#include <EditorComponents/EditorTerrainWorldComponent.h>
|
|
#include <EditorComponents/EditorTerrainWorldDebuggerComponent.h>
|
|
#include <EditorComponents/EditorTerrainWorldRendererComponent.h>
|
|
|
|
namespace Terrain
|
|
{
|
|
EditorTerrainModule::EditorTerrainModule()
|
|
{
|
|
m_descriptors.insert(
|
|
m_descriptors.end(),
|
|
{
|
|
Terrain::EditorTerrainHeightGradientListComponent::CreateDescriptor(),
|
|
Terrain::EditorTerrainLayerSpawnerComponent::CreateDescriptor(),
|
|
Terrain::EditorTerrainSurfaceGradientListComponent::CreateDescriptor(),
|
|
Terrain::EditorTerrainSystemComponent::CreateDescriptor(),
|
|
Terrain::EditorTerrainWorldComponent::CreateDescriptor(),
|
|
Terrain::EditorTerrainWorldDebuggerComponent::CreateDescriptor(),
|
|
Terrain::EditorTerrainWorldRendererComponent::CreateDescriptor(),
|
|
|
|
});
|
|
}
|
|
|
|
AZ::ComponentTypeList EditorTerrainModule::GetRequiredSystemComponents() const
|
|
{
|
|
AZ::ComponentTypeList requiredComponents = TerrainModule::GetRequiredSystemComponents();
|
|
requiredComponents.insert(
|
|
requiredComponents.end(),
|
|
{
|
|
azrtti_typeid<EditorTerrainSystemComponent>(),
|
|
});
|
|
|
|
return requiredComponents;
|
|
}
|
|
}
|
|
|
|
AZ_DECLARE_MODULE_CLASS(Gem_TerrainEditor, Terrain::EditorTerrainModule)
|