Files
o3de/Gems/Multiplayer/Code/Source/ConnectionData/ServerToClientConnectionData.inl
T
2021-06-23 10:55:22 -07:00

31 lines
684 B
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
namespace Multiplayer
{
inline bool ServerToClientConnectionData::CanSendUpdates() const
{
return m_canSendUpdates;
}
inline void ServerToClientConnectionData::SetCanSendUpdates(bool canSendUpdates)
{
m_canSendUpdates = canSendUpdates;
}
inline NetworkEntityHandle ServerToClientConnectionData::GetPrimaryPlayerEntity()
{
return m_controlledEntity;
}
inline const NetworkEntityHandle& ServerToClientConnectionData::GetPrimaryPlayerEntity() const
{
return m_controlledEntity;
}
}