EditorDebugDrawObbComponent.h 1.9 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/ToolsComponents/EditorComponentBase.h>
  10. #include "DebugDrawObbComponent.h"
  11. #include "EditorDebugDrawComponentCommon.h"
  12. namespace DebugDraw
  13. {
  14. class EditorDebugDrawObbComponent
  15. : public AzToolsFramework::Components::EditorComponentBase
  16. {
  17. friend class DebugDrawSystemComponent;
  18. public:
  19. AZ_EDITOR_COMPONENT(EditorDebugDrawObbComponent, "{602AF187-693F-4E04-96A7-0B2D2028A937}", 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. ////////////////////////////////////////////////////////////////////////
  26. // EditorComponentBase
  27. void BuildGameEntity(AZ::Entity* gameEntity) override;
  28. ////////////////////////////////////////////////////////////////////////
  29. ////////////////////////////////////////////////////////////////////////
  30. // AZ::Component interface implementation
  31. void Init() override;
  32. void Activate() override;
  33. void Deactivate() override;
  34. ////////////////////////////////////////////////////////////////////////
  35. protected:
  36. void OnPropertyUpdate();
  37. DebugDrawObbElement m_element;
  38. EditorDebugDrawComponentSettings m_settings;
  39. };
  40. }