AtomRenderOptionsSystemComponent.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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/Memory/Memory.h>
  11. #include "AtomRenderOptionsActionHandler.h"
  12. namespace AZ::Render
  13. {
  14. class AtomRenderOptionsSystemComponent : public AZ::Component
  15. {
  16. public:
  17. AZ_COMPONENT(AtomRenderOptionsSystemComponent, "{46FDACDF-8A4F-4CCE-85E3-2178398E0BDD}");
  18. static void Reflect(AZ::ReflectContext* context);
  19. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  20. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  21. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  22. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  23. protected:
  24. // AZ::Component overrides...
  25. void Activate() override;
  26. void Deactivate() override;
  27. private:
  28. AZStd::unique_ptr<AtomRenderOptionsActionHandler> m_actionHandler;
  29. };
  30. } // namespace AZ::Render