ScriptCanvasTestingEditorModule.cpp 1.7 KB

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