MultiplayerCompressionSystemComponent.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. #pragma once
  9. #include <AzCore/Component/Component.h>
  10. #include <AzCore/std/containers/unordered_set.h>
  11. #include <MultiplayerCompressionFactory.h>
  12. namespace MultiplayerCompression
  13. {
  14. /**
  15. * System component whose sole purpose is to own a compression factory and expose it via EBUS
  16. * so Multiplayer Gem can easily ingest the compressor.
  17. */
  18. class MultiplayerCompressionSystemComponent
  19. : public AZ::Component
  20. {
  21. public:
  22. AZ_COMPONENT(MultiplayerCompressionSystemComponent, "{C3099AC9-47A6-41D2-8928-F38F904BAC1B}");
  23. MultiplayerCompressionSystemComponent();
  24. ~MultiplayerCompressionSystemComponent() override;
  25. static void Reflect(AZ::ReflectContext* context);
  26. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  27. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  28. ////////////////////////////////////////////////////////////////////////
  29. // AZ::Component interface implementation
  30. void Init() override {}
  31. void Activate() override {}
  32. void Deactivate() override {}
  33. ////////////////////////////////////////////////////////////////////////
  34. private:
  35. MultiplayerCompressionFactory* m_multiplayerCompressionFactory;
  36. };
  37. }