mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-06 17:58:05 +02:00
27 lines
688 B
C#
27 lines
688 B
C#
using System.Collections.Immutable;
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
namespace Robust.Shared.Network
|
|
{
|
|
/// <summary>
|
|
/// Contains data about players returned from auth server.
|
|
/// </summary>
|
|
public sealed record NetUserData
|
|
{
|
|
[ViewVariables]
|
|
public NetUserId UserId { get; }
|
|
[ViewVariables]
|
|
public string UserName { get; }
|
|
[ViewVariables]
|
|
public string? PatronTier { get; init; }
|
|
[ViewVariables]
|
|
public ImmutableArray<byte> HWId { get; init; }
|
|
|
|
public NetUserData(NetUserId userId, string userName)
|
|
{
|
|
UserId = userId;
|
|
UserName = userName;
|
|
}
|
|
}
|
|
}
|