MeshletsEditorSystemComponent.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 <MeshletsSystemComponent.h>
  10. #include <AzToolsFramework/Entity/EditorEntityContextBus.h>
  11. namespace AZ
  12. {
  13. namespace Meshlets
  14. {
  15. /// System component for Meshlets editor
  16. class MeshletsEditorSystemComponent
  17. : public MeshletsSystemComponent
  18. , private AzToolsFramework::EditorEvents::Bus::Handler
  19. {
  20. using BaseSystemComponent = MeshletsSystemComponent;
  21. public:
  22. AZ_COMPONENT(MeshletsEditorSystemComponent, "{00c6370a-4390-41e4-aae3-a8425b2e776f}", BaseSystemComponent);
  23. static void Reflect(AZ::ReflectContext* context);
  24. MeshletsEditorSystemComponent();
  25. ~MeshletsEditorSystemComponent();
  26. private:
  27. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  28. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  29. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  30. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  31. // AZ::Component
  32. void Activate() override;
  33. void Deactivate() override;
  34. };
  35. } // namespace Meshlets
  36. } // namespace AZ