MultiplayerToolsSystemComponent.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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/Module/Module.h>
  11. #include <Multiplayer/IMultiplayerTools.h>
  12. namespace Multiplayer
  13. {
  14. class MultiplayerToolsSystemComponent final
  15. : public AZ::Component
  16. , public IMultiplayerTools
  17. {
  18. public:
  19. AZ_COMPONENT(MultiplayerToolsSystemComponent, "{65AF5342-0ECE-423B-B646-AF55A122F72B}");
  20. static void Reflect(AZ::ReflectContext* context);
  21. MultiplayerToolsSystemComponent() = default;
  22. ~MultiplayerToolsSystemComponent() override = default;
  23. /// AZ::Component overrides.
  24. void Activate() override;
  25. void Deactivate() override;
  26. bool DidProcessNetworkPrefabs() override;
  27. private:
  28. void SetDidProcessNetworkPrefabs(bool didProcessNetPrefabs) override;
  29. bool m_didProcessNetPrefabs = false;
  30. };
  31. } // namespace Multiplayer