This repository has been archived on 2026-07-13. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
servicepoint-tanks/TanksServer/Models/Player.cs
Vinzenz Schroeter 1f0e6ba8fa formatting
2024-04-13 14:08:51 +02:00

18 lines
396 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;
}