DebugDrawLineComponent.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 <AzCore/Component/Component.h>
  10. #include <AzCore/Script/ScriptTimePoint.h>
  11. #include <DebugDraw/DebugDrawBus.h>
  12. namespace DebugDraw
  13. {
  14. class DebugDrawLineComponent
  15. : public AZ::Component
  16. {
  17. friend class DebugDrawSystemComponent;
  18. public:
  19. AZ_COMPONENT(DebugDrawLineComponent, "{E7CBA314-CD9C-4625-AF65-B28369FE272A}");
  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. DebugDrawLineComponent() = default;
  26. explicit DebugDrawLineComponent(const DebugDrawLineElement& element);
  27. ~DebugDrawLineComponent() override = default;
  28. ////////////////////////////////////////////////////////////////////////
  29. // AZ::Component interface implementation
  30. void Init() override;
  31. void Activate() override;
  32. void Deactivate() override;
  33. ////////////////////////////////////////////////////////////////////////
  34. protected:
  35. DebugDrawLineElement m_element;
  36. };
  37. }