StarsSystemComponent.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. namespace AZ::Render
  11. {
  12. class StarsAssetHandler;
  13. class StarsSystemComponent
  14. : public AZ::Component
  15. {
  16. public:
  17. AZ_COMPONENT(StarsSystemComponent, "{ce10f0f9-5fe3-4376-8ccf-d56ec780005d}");
  18. static void Reflect(AZ::ReflectContext* context);
  19. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  20. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  21. StarsSystemComponent() = default;
  22. ~StarsSystemComponent() = default;
  23. protected:
  24. //! AZ::Component
  25. void Activate() override;
  26. void Deactivate() override;
  27. private:
  28. AZ::Render::StarsAssetHandler* m_starsAssetHandler;
  29. };
  30. } // namespace AZ::Render