3
0

EditorDebugDrawTextComponent.h 1.5 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 <AzToolsFramework/ToolsComponents/EditorComponentBase.h>
  10. #include "DebugDrawTextComponent.h"
  11. #include "EditorDebugDrawComponentCommon.h"
  12. namespace DebugDraw
  13. {
  14. class EditorDebugDrawTextComponent
  15. : public AzToolsFramework::Components::EditorComponentBase
  16. {
  17. friend class DebugDrawSystemComponent;
  18. public:
  19. AZ_EDITOR_COMPONENT(EditorDebugDrawTextComponent, "{1B61B17F-AEE3-4AEB-A4E4-2BB053FB45D9}", AzToolsFramework::Components::EditorComponentBase);
  20. static void Reflect(AZ::ReflectContext* context);
  21. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  22. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  23. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  24. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  25. // EditorComponentBase
  26. void BuildGameEntity(AZ::Entity* gameEntity) override;
  27. // AZ::Component interface implementation
  28. void Init() override;
  29. void Activate() override;
  30. void Deactivate() override;
  31. protected:
  32. void OnPropertyUpdate();
  33. DebugDrawTextElement m_element;
  34. EditorDebugDrawComponentSettings m_settings;
  35. };
  36. }