CommonSystemComponent.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 <Atom_Feature_Traits_Platform.h>
  11. #include <Atom/RPI.Public/Pass/PassSystemInterface.h>
  12. namespace AZ
  13. {
  14. namespace Render
  15. {
  16. class ModelReloaderSystem;
  17. class CommonSystemComponent
  18. : public AZ::Component
  19. {
  20. public:
  21. AZ_COMPONENT(CommonSystemComponent, "{BFB8FE2B-C952-4D0C-8E32-4FE7C7A97757}");
  22. CommonSystemComponent();
  23. ~CommonSystemComponent();
  24. static void Reflect(AZ::ReflectContext* context);
  25. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  26. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  27. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  28. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  29. protected:
  30. // AZ::Component interface overrides...
  31. void Init() override;
  32. void Activate() override;
  33. void Deactivate() override;
  34. // Load pass template mappings for this gem
  35. void LoadPassTemplateMappings();
  36. RPI::PassSystemInterface::OnReadyLoadTemplatesEvent::Handler m_loadTemplatesHandler;
  37. AZStd::unique_ptr<ModelReloaderSystem> m_modelReloaderSystem;
  38. };
  39. } // namespace Render
  40. } // namespace AZ