ROSConDemoEditorSystemComponent.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 <ROSConDemoSystemComponent.h>
  10. #include <AzToolsFramework/Entity/EditorEntityContextBus.h>
  11. namespace ROSConDemo
  12. {
  13. /// System component for ROS2 editor
  14. class ROSConDemoEditorSystemComponent
  15. : public ROSConDemoSystemComponent
  16. , private AzToolsFramework::EditorEntityContextNotificationBus::Handler
  17. {
  18. public:
  19. AZ_COMPONENT(ROSConDemoEditorSystemComponent, "{96e4d699-8ebf-f2cc-9c6f-7791d697e1fa}", ROSConDemoSystemComponent);
  20. static void Reflect(AZ::ReflectContext* context);
  21. ROSConDemoEditorSystemComponent();
  22. ~ROSConDemoEditorSystemComponent();
  23. private:
  24. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  25. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  26. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  27. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  28. //////////////////////////////////////////////////////////////////////////
  29. // Component overrides
  30. void Activate() override;
  31. void Deactivate() override;
  32. //////////////////////////////////////////////////////////////////////////
  33. //////////////////////////////////////////////////////////////////////////
  34. // EditorEntityContextNotificationBus overrides
  35. void OnStartPlayInEditor() override;
  36. void OnStopPlayInEditorBegin() override;
  37. //////////////////////////////////////////////////////////////////////////
  38. };
  39. } // namespace ROSConDemo