AutomatedTestingModule.cpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 <Source/AutoGen/AutoComponentTypes.h>
  11. #include <AutomatedTestingSystemComponent.h>
  12. namespace AutomatedTesting
  13. {
  14. class AutomatedTestingModule
  15. : public AZ::Module
  16. {
  17. public:
  18. AZ_RTTI(AutomatedTestingModule, "{3D6F59F6-013F-46F8-A840-5C2C43FA6AFB}", AZ::Module);
  19. AZ_CLASS_ALLOCATOR(AutomatedTestingModule, AZ::SystemAllocator);
  20. AutomatedTestingModule()
  21. : AZ::Module()
  22. {
  23. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  24. m_descriptors.insert(m_descriptors.end(), {
  25. AutomatedTestingSystemComponent::CreateDescriptor(),
  26. });
  27. CreateComponentDescriptors(m_descriptors); //< Register multiplayer components
  28. }
  29. /**
  30. * Add required SystemComponents to the SystemEntity.
  31. */
  32. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  33. {
  34. return AZ::ComponentTypeList{
  35. azrtti_typeid<AutomatedTestingSystemComponent>(),
  36. };
  37. }
  38. };
  39. }
  40. #if defined(O3DE_GEM_NAME)
  41. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME), AutomatedTesting::AutomatedTestingModule)
  42. #else
  43. AZ_DECLARE_MODULE_CLASS(Gem_AutomatedTesting, AutomatedTesting::AutomatedTestingModule)
  44. #endif