2024-04-10 22:03:36 +02:00
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
2024-04-07 13:02:49 +02:00
|
|
|
namespace TanksServer.Models;
|
|
|
|
|
|
|
|
internal sealed class Player(string name)
|
|
|
|
{
|
|
|
|
public string Name => name;
|
|
|
|
|
|
|
|
public Guid Id { get; } = Guid.NewGuid();
|
|
|
|
|
2024-04-10 22:03:36 +02:00
|
|
|
[JsonIgnore]
|
2024-04-07 13:02:49 +02:00
|
|
|
public PlayerControls Controls { get; } = new();
|
2024-04-07 21:09:36 +02:00
|
|
|
|
|
|
|
public int Kills { get; set; }
|
|
|
|
|
|
|
|
public int Deaths { get; set; }
|
2024-04-10 22:03:36 +02:00
|
|
|
}
|