SamplesSystemComponent.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #include <AzCore/Component/Component.h>
  3. #include <Samples/SamplesBus.h>
  4. namespace Samples
  5. {
  6. class SamplesSystemComponent
  7. : public AZ::Component
  8. , protected SamplesRequestBus::Handler
  9. {
  10. public:
  11. AZ_COMPONENT(SamplesSystemComponent, "{7eb762c3-ddd6-472d-a5bf-a8bab6208122}");
  12. static void Reflect(AZ::ReflectContext* context);
  13. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  14. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  15. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  16. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  17. protected:
  18. ////////////////////////////////////////////////////////////////////////
  19. // SamplesRequestBus interface implementation
  20. ////////////////////////////////////////////////////////////////////////
  21. ////////////////////////////////////////////////////////////////////////
  22. // AZ::Component interface implementation
  23. void Init() override;
  24. void Activate() override;
  25. void Deactivate() override;
  26. ////////////////////////////////////////////////////////////////////////
  27. };
  28. }