MultiplayerCompressionFactory.cpp 658 B

1234567891011121314151617181920212223242526
  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 "MultiplayerCompressionFactory.h"
  9. #include "LZ4Compressor.h"
  10. #include <AzCore/std/smart_ptr/unique_ptr.h>
  11. namespace MultiplayerCompression
  12. {
  13. AZStd::unique_ptr<AzNetworking::ICompressor> MultiplayerCompressionFactory::Create()
  14. {
  15. return AZStd::make_unique<LZ4Compressor>();
  16. }
  17. const AZStd::string_view MultiplayerCompressionFactory::GetFactoryName() const
  18. {
  19. return s_compressorName;
  20. }
  21. }