ScriptCanvasTestingModule.cpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 "ScriptCanvasTestingSystemComponent.h"
  11. namespace ScriptCanvasTesting
  12. {
  13. class ScriptCanvasTestingModule
  14. : public AZ::Module
  15. {
  16. public:
  17. AZ_RTTI(ScriptCanvasTestingModule, "{AF32BC51-C4E5-48C4-B5E4-D7877C303D43}", AZ::Module);
  18. AZ_CLASS_ALLOCATOR(ScriptCanvasTestingModule, AZ::SystemAllocator);
  19. ScriptCanvasTestingModule()
  20. {
  21. m_descriptors.insert(m_descriptors.end(), {
  22. ScriptCanvasTestingSystemComponent::CreateDescriptor(),
  23. });
  24. }
  25. /**
  26. * Add required SystemComponents to the SystemEntity.
  27. */
  28. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  29. {
  30. return AZ::ComponentTypeList{
  31. azrtti_typeid<ScriptCanvasTestingSystemComponent>(),
  32. };
  33. }
  34. };
  35. }
  36. // DO NOT MODIFY THIS LINE UNLESS YOU RENAME THE GEM
  37. // The first parameter should be GemName_GemIdLower
  38. // The second should be the fully qualified name of the class above
  39. AZ_DECLARE_MODULE_CLASS(Gem_ScriptCanvasTesting, ScriptCanvasTesting::ScriptCanvasTestingModule)