12345678910111213141516171819202122232425262728293031323334353637 |
- /*
- * 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/Serialization/SerializeContext.h>
- #include <EditorComponents/EditorTerrainSystemComponent.h>
- #include <TerrainRenderer/EditorComponents/EditorTerrainMacroMaterialComponent.h>
- namespace Terrain
- {
- void EditorTerrainSystemComponent::Reflect(AZ::ReflectContext* context)
- {
- GradientSignal::ImageCreatorUtils::
- PaintableImageAssetHelper<EditorTerrainMacroMaterialComponent, EditorTerrainMacroMaterialComponentMode>::Reflect(context);
- if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
- {
- serializeContext->Class<EditorTerrainSystemComponent, AZ::Component>()->Version(1);
- }
- }
- void EditorTerrainSystemComponent::Activate()
- {
- AzToolsFramework::EditorEvents::Bus::Handler::BusConnect();
- }
- void EditorTerrainSystemComponent::Deactivate()
- {
- AzToolsFramework::EditorEvents::Bus::Handler::BusDisconnect();
- }
- } // namespace Terrain
|