PythonCoverageSystemComponent.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #pragma once
  2. #include <AzCore/Component/Component.h>
  3. #include <AzCore/Component/TickBus.h>
  4. #include <PythonCoverage/PythonCoverageBus.h>
  5. namespace PythonCoverage
  6. {
  7. class PythonCoverageSystemComponent
  8. : public AZ::Component
  9. , protected PythonCoverageRequestBus::Handler
  10. , public AZ::TickBus::Handler
  11. {
  12. public:
  13. AZ_COMPONENT(PythonCoverageSystemComponent, "{b2f692ae-1047-4a6d-a4ed-27b1aac40ba5}");
  14. static void Reflect(AZ::ReflectContext* context);
  15. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  16. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  17. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  18. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  19. protected:
  20. ////////////////////////////////////////////////////////////////////////
  21. // PythonCoverageRequestBus interface implementation
  22. ////////////////////////////////////////////////////////////////////////
  23. ////////////////////////////////////////////////////////////////////////
  24. // AZ::Component interface implementation
  25. void Init() override;
  26. void Activate() override;
  27. void Deactivate() override;
  28. ////////////////////////////////////////////////////////////////////////
  29. ////////////////////////////////////////////////////////////////////////
  30. // AZTickBus interface implementation
  31. void OnTick(float deltaTime, AZ::ScriptTimePoint time) override;
  32. ////////////////////////////////////////////////////////////////////////
  33. };
  34. } // namespace PythonCoverage