ArchiveModuleInterface.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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/Memory_fwd.h>
  9. #include <AzCore/Module/Module.h>
  10. #include <AzCore/RTTI/RTTIMacros.h>
  11. #include <AzCore/RTTI/TypeInfoSimple.h>
  12. namespace Archive
  13. {
  14. class IArchiveReaderFactory;
  15. class ArchiveModuleInterface
  16. : public AZ::Module
  17. {
  18. public:
  19. AZ_TYPE_INFO_WITH_NAME_DECL(ArchiveModuleInterface)
  20. AZ_RTTI_NO_TYPE_INFO_DECL()
  21. AZ_CLASS_ALLOCATOR_DECL
  22. ArchiveModuleInterface();
  23. ~ArchiveModuleInterface();
  24. /**
  25. * Add required SystemComponents to the SystemEntity.
  26. */
  27. AZ::ComponentTypeList GetRequiredSystemComponents() const override;
  28. private:
  29. // Archive Reader factory registered with the ArchiveReaderFactoryInterface
  30. // This allows external gem modules to create ArchiveReader instances
  31. // via the CreateArchiveReader functions in the ArchiveReaderAPI.h
  32. AZStd::unique_ptr<IArchiveReaderFactory> m_archiveReaderFactory;
  33. };
  34. }// namespace Archive