using Robust.Shared.Network;
using Robust.Shared.ViewVariables;
namespace Robust.Shared.Player;
///
/// Stores session-specific data that is not lost upon reconnect.
///
public sealed class SessionData
{
public SessionData(NetUserId userId, string userName)
{
UserId = userId;
UserName = userName;
}
///
/// The session ID of the player owning this data.
///
[ViewVariables]
public NetUserId UserId { get; }
[ViewVariables]
public string UserName { get; }
///
/// Custom field that content can assign anything to.
/// Go wild.
///
[ViewVariables]
public object? ContentDataUncast { get; set; }
}