EditorTerrainSystemComponent.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/Component/Component.h>
  10. #include <AzToolsFramework/Entity/EditorEntityContextBus.h>
  11. namespace Terrain
  12. {
  13. /// System component for Terrain editor
  14. class EditorTerrainSystemComponent
  15. : public AZ::Component
  16. , private AzToolsFramework::EditorEvents::Bus::Handler
  17. {
  18. public:
  19. AZ_COMPONENT(EditorTerrainSystemComponent, "{5E9f2200-9099-4325-BABD-6A533A1ABEA8}");
  20. static void Reflect(AZ::ReflectContext* context);
  21. EditorTerrainSystemComponent() = default;
  22. private:
  23. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)
  24. {
  25. provided.push_back(AZ_CRC_CE("TerrainEditorService"));
  26. }
  27. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required)
  28. {
  29. required.push_back(AZ_CRC_CE("TerrainService"));
  30. }
  31. // AZ::Component
  32. void Activate() override;
  33. void Deactivate() override;
  34. };
  35. } // namespace Terrain