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