ScriptCanvasTestingModule.cpp 1.4 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 "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. #if defined(O3DE_GEM_NAME)
  37. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME), ScriptCanvasTesting::ScriptCanvasTestingModule)
  38. #else
  39. AZ_DECLARE_MODULE_CLASS(Gem_ScriptCanvasTesting, ScriptCanvasTesting::ScriptCanvasTestingModule)
  40. #endif