RpcUnitTesterComponent.cpp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. #include <Tests/RpcUnitTesterComponent.h>
  8. #include <AzCore/Serialization/SerializeContext.h>
  9. namespace MultiplayerTest
  10. {
  11. void RpcUnitTesterComponent::Reflect(AZ::ReflectContext* context)
  12. {
  13. AZ::SerializeContext* serializeContext = azrtti_cast<AZ::SerializeContext*>(context);
  14. if (serializeContext)
  15. {
  16. serializeContext->Class<RpcUnitTesterComponent, RpcUnitTesterComponentBase>()
  17. ->Version(1);
  18. }
  19. RpcUnitTesterComponentBase::Reflect(context);
  20. }
  21. void RpcUnitTesterComponent::OnInit()
  22. {
  23. }
  24. void RpcUnitTesterComponent::OnActivate([[maybe_unused]] Multiplayer::EntityIsMigrating entityIsMigrating)
  25. {
  26. }
  27. void RpcUnitTesterComponent::OnDeactivate([[maybe_unused]] Multiplayer::EntityIsMigrating entityIsMigrating)
  28. {
  29. }
  30. RpcUnitTesterComponentController* RpcUnitTesterComponent::GetTestController()
  31. {
  32. return static_cast<RpcUnitTesterComponentController*>(GetController());
  33. }
  34. RpcUnitTesterComponentController::RpcUnitTesterComponentController(RpcUnitTesterComponent& parent)
  35. : RpcUnitTesterComponentControllerBase(parent)
  36. {
  37. }
  38. void RpcUnitTesterComponentController::OnActivate([[maybe_unused]] Multiplayer::EntityIsMigrating entityIsMigrating)
  39. {
  40. }
  41. void RpcUnitTesterComponentController::OnDeactivate([[maybe_unused]] Multiplayer::EntityIsMigrating entityIsMigrating)
  42. {
  43. }
  44. }