NetSoakTestModule.cpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0 OR MIT
  5. *
  6. */
  7. #include <AzCore/Memory/SystemAllocator.h>
  8. #include <AzCore/Module/Module.h>
  9. #include "NetSoakTestSystemComponent.h"
  10. namespace NetSoakTest
  11. {
  12. class NetSoakTestModule
  13. : public AZ::Module
  14. {
  15. public:
  16. AZ_RTTI(NetSoakTestModule, "{F690318C-AA4A-4207-A69F-92A476FC8213}", AZ::Module);
  17. AZ_CLASS_ALLOCATOR(NetSoakTestModule, AZ::SystemAllocator, 0);
  18. NetSoakTestModule()
  19. : AZ::Module()
  20. {
  21. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  22. m_descriptors.insert(m_descriptors.end(), {
  23. NetSoakTestSystemComponent::CreateDescriptor(),
  24. });
  25. }
  26. /**
  27. * Add required SystemComponents to the SystemEntity.
  28. */
  29. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  30. {
  31. return AZ::ComponentTypeList{
  32. azrtti_typeid<NetSoakTestSystemComponent>(),
  33. };
  34. }
  35. };
  36. }
  37. // DO NOT MODIFY THIS LINE UNLESS YOU RENAME THE GEM
  38. // The first parameter should be GemName_GemIdLower
  39. // The second should be the fully qualified name of the class above
  40. AZ_DECLARE_MODULE_CLASS(Gem_NetSoakTest, NetSoakTest::NetSoakTestModule)