${Name}SystemComponent.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. class ${SanitizedCppName}SystemComponent
  16. : public AZ::Component
  17. , protected ${SanitizedCppName}RequestBus::Handler
  18. {
  19. public:
  20. AZ_COMPONENT_DECL(${SanitizedCppName}SystemComponent);
  21. static void Reflect(AZ::ReflectContext* context);
  22. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  23. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  24. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  25. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  26. ${SanitizedCppName}SystemComponent();
  27. ~${SanitizedCppName}SystemComponent();
  28. protected:
  29. ////////////////////////////////////////////////////////////////////////
  30. // ${SanitizedCppName}RequestBus interface implementation
  31. ////////////////////////////////////////////////////////////////////////
  32. ////////////////////////////////////////////////////////////////////////
  33. // AZ::Component interface implementation
  34. void Init() override;
  35. void Activate() override;
  36. void Deactivate() override;
  37. ////////////////////////////////////////////////////////////////////////
  38. };
  39. }