DebugSystemComponent.h 1.4 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 <Vegetation/Ebuses/DebugSystemDataBus.h>
  11. namespace Vegetation
  12. {
  13. /**
  14. * The system component that manages debug data
  15. */
  16. class DebugSystemComponent
  17. : public AZ::Component
  18. , public DebugSystemDataBus::Handler
  19. {
  20. public:
  21. AZ_COMPONENT(DebugSystemComponent, "{A8E3D8D4-B6A5-48A6-90D6-153F9EFDF75E}");
  22. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& services);
  23. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& services);
  24. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& services);
  25. static void Reflect(AZ::ReflectContext* context);
  26. DebugSystemComponent();
  27. ~DebugSystemComponent() override;
  28. //////////////////////////////////////////////////////////////////////////
  29. // DebugSystemDataBus
  30. DebugData* GetDebugData() override;
  31. private:
  32. //////////////////////////////////////////////////////////////////////////
  33. // AZ::Component
  34. void Activate() override;
  35. void Deactivate() override;
  36. DebugData m_debugData;
  37. };
  38. } // namespace Vegetation