move backend to subfolder
This commit is contained in:
parent
d4d1f2f981
commit
8d09663eff
80 changed files with 98 additions and 88 deletions
16
tanks-backend/TanksServer/Models/Player.cs
Normal file
16
tanks-backend/TanksServer/Models/Player.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace TanksServer.Models;
|
||||
|
||||
internal sealed class Player(string name, Guid id)
|
||||
{
|
||||
public string Name => name;
|
||||
|
||||
[JsonIgnore] public Guid Id => id;
|
||||
|
||||
[JsonIgnore] public PlayerControls Controls { get; } = new();
|
||||
|
||||
public Scores Scores { get; } = new();
|
||||
|
||||
public DateTime LastInput { get; set; } = DateTime.Now;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue