17 lines
342 B
C#
17 lines
342 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; }
|
|
} |