mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
33 lines
821 B
C#
33 lines
821 B
C#
using Robust.Shared.Enums;
|
|
using Robust.Shared.Interfaces.GameObjects;
|
|
using Robust.Shared.Network;
|
|
|
|
namespace Robust.Client.Player
|
|
{
|
|
|
|
internal sealed class PlayerSession : IPlayerSession
|
|
{
|
|
/// <inheritdoc />
|
|
public SessionStatus Status { get; set; } = SessionStatus.Connecting;
|
|
|
|
public IEntity AttachedEntity { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public NetSessionId SessionId { get; }
|
|
|
|
/// <inheritdoc cref="IPlayerSession" />
|
|
public string Name { get; set; } = "<Unknown>";
|
|
|
|
/// <inheritdoc />
|
|
public short Ping { get; set; }
|
|
|
|
/// <summary>
|
|
/// Creates an instance of a PlayerSession.
|
|
/// </summary
|
|
public PlayerSession(NetSessionId session)
|
|
{
|
|
SessionId = session;
|
|
}
|
|
}
|
|
}
|