AtomBridgeEditorModule.cpp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 <AtomBridgeModule.h>
  11. #include "./Editor/AssetCollectionAsyncLoaderTestComponent.h"
  12. namespace AZ
  13. {
  14. namespace AtomBridge
  15. {
  16. class EditorModule
  17. : public Module
  18. {
  19. public:
  20. AZ_RTTI(EditorModule, "{7B330394-BE9C-4BDA-9345-1A0859815982}", Module);
  21. AZ_CLASS_ALLOCATOR(EditorModule, AZ::SystemAllocator);
  22. EditorModule()
  23. : Module()
  24. {
  25. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  26. m_descriptors.insert(m_descriptors.end(), {
  27. AssetCollectionAsyncLoaderTestComponent::CreateDescriptor(),
  28. });
  29. }
  30. /**
  31. * Add required SystemComponents to the SystemEntity.
  32. */
  33. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  34. {
  35. AZ::ComponentTypeList components = Module::GetRequiredSystemComponents();
  36. // components.insert(components.end(), {
  37. // });
  38. return components;
  39. }
  40. };
  41. }
  42. } // namespace AZ
  43. #if defined(O3DE_GEM_NAME)
  44. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME, _Editor), AZ::AtomBridge::EditorModule)
  45. #else
  46. AZ_DECLARE_MODULE_CLASS(Gem_Atom_AtomBridge_Editor, AZ::AtomBridge::EditorModule)
  47. #endif