bcc186f87f
* wip Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com> * wip Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com> * Terrain Surface Materials List Component. Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com> * fix erroneous commit Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com> * Added some comments. Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com> * Review changes. Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com> * Surface Materials list unit tests Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com> * Missing shape test 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> * Fix case issue in include path. Signed-off-by: Ken Pruiksma <pruiksma@amazon.com> * replaced reverted test. Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com> Co-authored-by: Ken Pruiksma <pruiksma@amazon.com>
59 lines
2.2 KiB
C++
59 lines
2.2 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 <AzCore/Memory/SystemAllocator.h>
|
|
#include <AzCore/Module/Module.h>
|
|
|
|
#include <TerrainModule.h>
|
|
#include <Components/TerrainSystemComponent.h>
|
|
#include <Components/TerrainWorldComponent.h>
|
|
#include <Components/TerrainWorldDebuggerComponent.h>
|
|
#include <Components/TerrainWorldRendererComponent.h>
|
|
#include <Components/TerrainHeightGradientListComponent.h>
|
|
#include <Components/TerrainLayerSpawnerComponent.h>
|
|
#include <Components/TerrainSurfaceGradientListComponent.h>
|
|
#include <Components/TerrainSurfaceDataSystemComponent.h>
|
|
#include <TerrainRenderer/Components/TerrainSurfaceMaterialsListComponent.h>
|
|
#include <TerrainRenderer/Components/TerrainMacroMaterialComponent.h>
|
|
|
|
namespace Terrain
|
|
{
|
|
TerrainModule::TerrainModule()
|
|
: AZ::Module()
|
|
{
|
|
m_descriptors.insert(m_descriptors.end(), {
|
|
TerrainSurfaceMaterialsListComponent::CreateDescriptor(),
|
|
TerrainSystemComponent::CreateDescriptor(),
|
|
TerrainWorldComponent::CreateDescriptor(),
|
|
TerrainWorldDebuggerComponent::CreateDescriptor(),
|
|
TerrainWorldRendererComponent::CreateDescriptor(),
|
|
TerrainHeightGradientListComponent::CreateDescriptor(),
|
|
TerrainLayerSpawnerComponent::CreateDescriptor(),
|
|
TerrainMacroMaterialComponent::CreateDescriptor(),
|
|
TerrainSurfaceGradientListComponent::CreateDescriptor(),
|
|
TerrainSurfaceDataSystemComponent::CreateDescriptor(),
|
|
});
|
|
}
|
|
|
|
AZ::ComponentTypeList TerrainModule::GetRequiredSystemComponents() const
|
|
{
|
|
return AZ::ComponentTypeList{
|
|
azrtti_typeid<TerrainSystemComponent>(),
|
|
azrtti_typeid<TerrainSurfaceDataSystemComponent>(),
|
|
};
|
|
}
|
|
}
|
|
|
|
#if !defined(TERRAIN_EDITOR)
|
|
// DO NOT MODIFY THIS LINE UNLESS YOU RENAME THE GEM
|
|
// The first parameter should be GemName_GemIdLower
|
|
// The second should be the fully qualified name of the class above
|
|
AZ_DECLARE_MODULE_CLASS(Gem_Terrain, Terrain::TerrainModule)
|
|
#endif
|
|
|