SimulationManagerEditor.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 <AzToolsFramework/API/ToolsApplicationAPI.h>
  10. #include <AzToolsFramework/Entity/EditorEntityContextBus.h>
  11. #include <Clients/SimulationManager.h>
  12. namespace SimulationInterfaces
  13. {
  14. /// System component for SimulationInterfaces editor
  15. class SimulationManagerEditor
  16. : public SimulationManager
  17. , protected AzToolsFramework::EditorEvents::Bus::Handler
  18. , private AzToolsFramework::EditorEntityContextNotificationBus::Handler
  19. {
  20. using BaseSystemComponent = SimulationManager;
  21. public:
  22. AZ_COMPONENT_DECL(SimulationManagerEditor);
  23. static void Reflect(AZ::ReflectContext* context);
  24. SimulationManagerEditor();
  25. ~SimulationManagerEditor();
  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 Init() override;
  33. void Activate() override;
  34. void Deactivate() override;
  35. // EditorEntityContextNotificationBus
  36. void OnStartPlayInEditorBegin() override;
  37. };
  38. } // namespace SimulationInterfaces