mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
36 lines
817 B
C#
36 lines
817 B
C#
using Robust.Shared.Serialization;
|
|
using System;
|
|
using Robust.Shared.Enums;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.Network;
|
|
|
|
#nullable disable
|
|
|
|
namespace Robust.Shared.GameStates
|
|
{
|
|
[Serializable, NetSerializable]
|
|
public sealed class PlayerState
|
|
{
|
|
public NetUserId UserId { get; set; }
|
|
|
|
public string Name { get; set; }
|
|
public SessionStatus Status { get; set; }
|
|
public short Ping { get; set; }
|
|
|
|
public NetEntity? ControlledEntity { get; set; }
|
|
|
|
public PlayerState Clone()
|
|
{
|
|
return new PlayerState
|
|
{
|
|
UserId = UserId,
|
|
Name = Name,
|
|
Status = Status,
|
|
Ping = Ping,
|
|
ControlledEntity = ControlledEntity
|
|
};
|
|
}
|
|
|
|
}
|
|
}
|