SceneBuilderComponent.h 1001 B

12345678910111213141516171819202122232425262728293031323334353637
  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 <SceneBuilder/SceneBuilderWorker.h>
  11. namespace AZ
  12. {
  13. class Entity;
  14. } // namespace AZ
  15. namespace SceneBuilder
  16. {
  17. class BuilderPluginComponent
  18. : public AZ::Component
  19. {
  20. public:
  21. AZ_COMPONENT(BuilderPluginComponent, "{47BB00DE-2C6F-4A8E-9DCF-9A226DF0D649}")
  22. static void Reflect(AZ::ReflectContext* context);
  23. void Activate() override;
  24. void Deactivate() override;
  25. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  26. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& services);
  27. private:
  28. SceneBuilderWorker m_sceneBuilder;
  29. };
  30. } // namespace SceneBuilder