LandscapeCanvasEditorModule.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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/Memory/SystemAllocator.h>
  10. #include <AzCore/Module/Module.h>
  11. namespace LandscapeCanvas
  12. {
  13. class LandscapeCanvasEditorModule
  14. : public AZ::Module
  15. {
  16. public:
  17. AZ_RTTI(LandscapeCanvasEditorModule, "{5E539B81-792E-4BE5-BCA2-95C5D826E75B}", AZ::Module);
  18. AZ_CLASS_ALLOCATOR(LandscapeCanvasEditorModule, AZ::SystemAllocator);
  19. LandscapeCanvasEditorModule();
  20. AZ::ComponentTypeList GetRequiredSystemComponents() const override;
  21. };
  22. class LandscapeCanvasEditorSystemComponent
  23. : public AZ::Component
  24. {
  25. public:
  26. AZ_COMPONENT(LandscapeCanvasEditorSystemComponent, "{11402EA3-57FF-4086-A980-228EEA0CDAF3}");
  27. static void Reflect(AZ::ReflectContext* context);
  28. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  29. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  30. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  31. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  32. private:
  33. // AZ::Component
  34. void Activate() override;
  35. void Deactivate() override;
  36. };
  37. }