StreamerProfilerModuleInterface.h 1.1 KB

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. #include <AzCore/Memory/SystemAllocator.h>
  9. #include <AzCore/Module/Module.h>
  10. #include <StreamerProfilerSystemComponent.h>
  11. namespace Streamer
  12. {
  13. class StreamerProfilerModuleInterface
  14. : public AZ::Module
  15. {
  16. public:
  17. AZ_RTTI(StreamerProfilerModuleInterface, "{27fc3f53-8e85-43be-b121-3fef086f8f22}", AZ::Module);
  18. AZ_CLASS_ALLOCATOR(StreamerProfilerModuleInterface, AZ::SystemAllocator);
  19. StreamerProfilerModuleInterface()
  20. {
  21. m_descriptors.insert(m_descriptors.end(), {
  22. StreamerProfilerSystemComponent::CreateDescriptor(),
  23. });
  24. }
  25. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  26. {
  27. return AZ::ComponentTypeList{
  28. azrtti_typeid<StreamerProfilerSystemComponent>(),
  29. };
  30. }
  31. };
  32. }// namespace Streamer