1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /*
- * 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
- *
- */
- #pragma once
- #include <AzCore/Component/Component.h>
- #include <AzToolsFramework/Entity/EditorEntityContextBus.h>
- namespace Terrain
- {
- /// System component for Terrain editor
- class EditorTerrainSystemComponent
- : public AZ::Component
- , private AzToolsFramework::EditorEvents::Bus::Handler
- {
- public:
- AZ_COMPONENT(EditorTerrainSystemComponent, "{5E9f2200-9099-4325-BABD-6A533A1ABEA8}");
- static void Reflect(AZ::ReflectContext* context);
- EditorTerrainSystemComponent() = default;
- private:
- static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)
- {
- provided.push_back(AZ_CRC_CE("TerrainEditorService"));
- }
- static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required)
- {
- required.push_back(AZ_CRC_CE("TerrainService"));
- }
- // AZ::Component
- void Activate() override;
- void Deactivate() override;
- };
- } // namespace Terrain
|