3
0

PythonAssetBuilderModule.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 <AzToolsFramework/API/PythonLoader.h>
  11. #include <PythonAssetBuilderSystemComponent.h>
  12. namespace PythonAssetBuilder
  13. {
  14. class PythonAssetBuilderModule
  15. : public AZ::Module
  16. , public AzToolsFramework::EmbeddedPython::PythonLoader
  17. {
  18. public:
  19. AZ_RTTI(PythonAssetBuilderModule, "{35C9457E-54C2-474C-AEBE-5A70CC1D435D}", AZ::Module);
  20. AZ_CLASS_ALLOCATOR(PythonAssetBuilderModule, AZ::SystemAllocator);
  21. PythonAssetBuilderModule()
  22. : AZ::Module()
  23. {
  24. m_descriptors.insert(m_descriptors.end(), {
  25. PythonAssetBuilderSystemComponent::CreateDescriptor(),
  26. });
  27. }
  28. // Add required SystemComponents to the SystemEntity.
  29. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  30. {
  31. return AZ::ComponentTypeList{};
  32. }
  33. };
  34. }
  35. // DO NOT MODIFY THIS LINE UNLESS YOU RENAME THE GEM
  36. // The first parameter should be GemName_GemIdLower
  37. // The second should be the fully qualified name of the class above
  38. AZ_DECLARE_MODULE_CLASS(PythonAssetBuilder_0a5fda05323649009444bb7c3ee2b9c4, PythonAssetBuilder::PythonAssetBuilderModule)