${Name}SystemComponent.h 1.6 KB

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