NetworkHealthComponent.h 846 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0 OR MIT
  5. *
  6. */
  7. #pragma once
  8. #include <Source/AutoGen/NetworkHealthComponent.AutoComponent.h>
  9. namespace ${SanitizedCppName}
  10. {
  11. class NetworkHealthComponentController
  12. : public NetworkHealthComponentControllerBase
  13. {
  14. public:
  15. NetworkHealthComponentController(NetworkHealthComponent& parent);
  16. void OnActivate(Multiplayer::EntityIsMigrating entityIsMigrating) override;
  17. void OnDeactivate(Multiplayer::EntityIsMigrating entityIsMigrating) override;
  18. #if AZ_TRAIT_SERVER
  19. void HandleSendHealthDelta(AzNetworking::IConnection* invokingConnection, const float& healthDelta) override;
  20. #endif
  21. };
  22. }