PrefabBuilderModule.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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/Module/Module.h>
  9. #include <PrefabBuilderComponent.h>
  10. #include <PrefabGroup/PrefabGroupBehavior.h>
  11. namespace AZ::Prefab
  12. {
  13. class PrefabBuilderModule
  14. : public Module
  15. {
  16. public:
  17. AZ_RTTI(AZ::Prefab::PrefabBuilderModule, "{088B2BA8-9F19-469C-A0B5-1DD523879C70}", Module);
  18. AZ_CLASS_ALLOCATOR(PrefabBuilderModule, AZ::SystemAllocator);
  19. PrefabBuilderModule()
  20. : Module()
  21. {
  22. m_descriptors.insert(m_descriptors.end(), {
  23. PrefabBuilderComponent::CreateDescriptor(),
  24. AZ::SceneAPI::Behaviors::PrefabGroupBehavior::CreateDescriptor()
  25. });
  26. }
  27. };
  28. } // namespace AZ::Prefab
  29. #if defined(O3DE_GEM_NAME)
  30. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME, _Builders), AZ::Prefab::PrefabBuilderModule)
  31. #else
  32. AZ_DECLARE_MODULE_CLASS(Gem_PrefabBuilder_Builders, AZ::Prefab::PrefabBuilderModule)
  33. #endif