using Robust.Shared.GameObjects;
using Robust.Shared.Network;
using Robust.Shared.Player;
using Robust.Shared.ViewVariables;
namespace Robust.Client.Player
{
///
/// Variables and functions that deal with the local client's session.
///
public sealed class LocalPlayer
{
public LocalPlayer(ICommonSession session)
{
Session = session;
}
///
/// Game entity that the local player is controlling. If this is default, the player is not attached to any
/// entity at all.
///
[ViewVariables]
public EntityUid? ControlledEntity => Session.AttachedEntity;
[ViewVariables]
public NetUserId UserId => Session.UserId;
///
/// OOC name of the local player.
///
[ViewVariables]
public string Name => Session.Name;
///
/// Session of the local client.
///
public ICommonSession Session;
}
}