servicepoint-tanks/tanks-backend/TanksServer/Models/Player.cs

17 lines
369 B
C#
Raw Normal View History

2024-04-10 22:03:36 +02:00
using System.Text.Json.Serialization;
2024-04-07 13:02:49 +02:00
namespace TanksServer.Models;
2024-04-13 18:35:36 +02:00
internal sealed class Player(string name, Guid id)
2024-04-07 13:02:49 +02:00
{
public string Name => name;
2024-04-13 18:35:36 +02:00
[JsonIgnore] public Guid Id => id;
2024-04-07 13:02:49 +02:00
2024-04-13 14:08:51 +02:00
[JsonIgnore] public PlayerControls Controls { get; } = new();
2024-04-07 21:09:36 +02:00
2024-04-13 18:35:36 +02:00
public Scores Scores { get; } = new();
2024-04-12 14:28:57 +02:00
public DateTime LastInput { get; set; } = DateTime.Now;
2024-04-13 14:08:51 +02:00
}