ServerToClientConnectionData.inl 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. namespace Multiplayer
  9. {
  10. inline bool ServerToClientConnectionData::CanSendUpdates() const
  11. {
  12. return m_canSendUpdates;
  13. }
  14. inline void ServerToClientConnectionData::SetCanSendUpdates(bool canSendUpdates)
  15. {
  16. m_canSendUpdates = canSendUpdates;
  17. }
  18. inline NetworkEntityHandle ServerToClientConnectionData::GetPrimaryPlayerEntity()
  19. {
  20. return m_controlledEntity;
  21. }
  22. inline const NetworkEntityHandle& ServerToClientConnectionData::GetPrimaryPlayerEntity() const
  23. {
  24. return m_controlledEntity;
  25. }
  26. inline const AZStd::string& ServerToClientConnectionData::GetProviderTicket() const
  27. {
  28. return m_providerTicket;
  29. }
  30. inline void ServerToClientConnectionData::SetProviderTicket(const AZStd::string& ticket)
  31. {
  32. m_providerTicket = ticket;
  33. }
  34. inline bool ServerToClientConnectionData::DidHandshake() const
  35. {
  36. return m_didHandshake;
  37. }
  38. inline void ServerToClientConnectionData::SetDidHandshake(bool didHandshake)
  39. {
  40. m_didHandshake = didHandshake;
  41. }
  42. }