Files
RobustToolbox/Robust.Shared/GameStates/PlayerState.cs
2023-09-11 09:42:55 +10:00

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
};
}
}
}