AutomatedTestingModule.cpp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 <AutomatedTestingSystemComponent.h>
  11. namespace AutomatedTesting
  12. {
  13. class AutomatedTestingModule
  14. : public AZ::Module
  15. {
  16. public:
  17. AZ_RTTI(AutomatedTestingModule, "{3D6F59F6-013F-46F8-A840-5C2C43FA6AFB}", AZ::Module);
  18. AZ_CLASS_ALLOCATOR(AutomatedTestingModule, AZ::SystemAllocator, 0);
  19. AutomatedTestingModule()
  20. : AZ::Module()
  21. {
  22. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  23. m_descriptors.insert(m_descriptors.end(), {
  24. AutomatedTestingSystemComponent::CreateDescriptor(),
  25. });
  26. }
  27. /**
  28. * Add required SystemComponents to the SystemEntity.
  29. */
  30. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  31. {
  32. return AZ::ComponentTypeList{
  33. azrtti_typeid<AutomatedTestingSystemComponent>(),
  34. };
  35. }
  36. };
  37. }
  38. // DO NOT MODIFY THIS LINE UNLESS YOU RENAME THE GEM
  39. // The first parameter should be GemName_GemIdLower
  40. // The second should be the fully qualified name of the class above
  41. AZ_DECLARE_MODULE_CLASS(Gem_AutomatedTesting, AutomatedTesting::AutomatedTestingModule)