${Name}EditorSystemComponent.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 <AzToolsFramework/API/ToolsApplicationAPI.h>
  10. #include <Clients/${Name}SystemComponent.h>
  11. namespace ${Name}
  12. {
  13. /// System component for ${Name} editor
  14. class ${Name}EditorSystemComponent
  15. : public ${Name}SystemComponent
  16. , protected AzToolsFramework::EditorEvents::Bus::Handler
  17. {
  18. using BaseSystemComponent = ${Name}SystemComponent;
  19. public:
  20. AZ_COMPONENT_DECL(${Name}EditorSystemComponent);
  21. static void Reflect(AZ::ReflectContext* context);
  22. ${Name}EditorSystemComponent();
  23. ~${Name}EditorSystemComponent();
  24. private:
  25. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  26. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  27. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  28. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  29. // AZ::Component
  30. void Activate() override;
  31. void Deactivate() override;
  32. };
  33. } // namespace ${Name}