LevelManagerEditor.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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/LevelManager.h>
  12. namespace SimulationInterfaces
  13. {
  14. /// System component for SimulationInterfaces editor
  15. // This Part of the system is most not active in Editor but due to added required and dependant services it is required to exist in
  16. // Editor
  17. class LevelManagerEditor
  18. : public LevelManager
  19. , protected AzToolsFramework::EditorEvents::Bus::Handler
  20. , private AzToolsFramework::EditorEntityContextNotificationBus::Handler
  21. {
  22. using BaseSystemComponent = LevelManager;
  23. public:
  24. AZ_COMPONENT_DECL(LevelManagerEditor);
  25. static void Reflect(AZ::ReflectContext* context);
  26. LevelManagerEditor();
  27. ~LevelManagerEditor();
  28. private:
  29. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  30. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  31. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  32. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  33. // AZ::Component
  34. void Init() override;
  35. void Activate() override;
  36. void Deactivate() override;
  37. // EditorEntityContextNotificationBus
  38. void OnStartPlayInEditorBegin() override;
  39. void OnStopPlayInEditorBegin() override;
  40. };
  41. } // namespace SimulationInterfaces