${Name}EditorSystemComponent.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // {BEGIN_LICENSE}
  2. /*
  3. * Copyright (c) Contributors to the Open 3D Engine Project.
  4. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. *
  6. * SPDX-License-Identifier: Apache-2.0 OR MIT
  7. *
  8. */
  9. // {END_LICENSE}
  10. #pragma once
  11. #include <AzToolsFramework/API/ToolsApplicationAPI.h>
  12. #include <${Name}SystemComponent.h>
  13. namespace ${SanitizedCppName}
  14. {
  15. /// System component for ${SanitizedCppName} editor
  16. class ${SanitizedCppName}EditorSystemComponent
  17. : public ${SanitizedCppName}SystemComponent
  18. , protected AzToolsFramework::EditorEvents::Bus::Handler
  19. {
  20. using BaseSystemComponent = ${SanitizedCppName}SystemComponent;
  21. public:
  22. AZ_COMPONENT(${SanitizedCppName}EditorSystemComponent, "${EditorSysCompClassId}", BaseSystemComponent);
  23. static void Reflect(AZ::ReflectContext* context);
  24. ${SanitizedCppName}EditorSystemComponent();
  25. ~${SanitizedCppName}EditorSystemComponent();
  26. private:
  27. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  28. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  29. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  30. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  31. // AZ::Component
  32. void Activate() override;
  33. void Deactivate() override;
  34. };
  35. } // namespace ${SanitizedCppName}