servicepoint-tanks/TanksServer/Models/Player.cs
Vinzenz Schroeter 7e767d6dcb idle timeout
2024-04-12 14:28:57 +02:00

19 lines
403 B
C#

using System.Text.Json.Serialization;
namespace TanksServer.Models;
internal sealed class Player(string name)
{
public string Name => name;
public Guid Id { get; } = Guid.NewGuid();
[JsonIgnore]
public PlayerControls Controls { get; } = new();
public int Kills { get; set; }
public int Deaths { get; set; }
public DateTime LastInput { get; set; } = DateTime.Now;
}