native aot in container

This commit is contained in:
Vinzenz Schroeter 2024-04-10 22:03:36 +02:00
parent 0ca6a91a7e
commit 85ae3e302c
11 changed files with 128 additions and 61 deletions

View file

@ -1,3 +1,5 @@
using System.Text.Json.Serialization;
namespace TanksServer.Models;
internal sealed class Player(string name)
@ -6,18 +8,10 @@ internal sealed class Player(string name)
public Guid Id { get; } = Guid.NewGuid();
[JsonIgnore]
public PlayerControls Controls { get; } = new();
public int Kills { get; set; }
public int Deaths { get; set; }
}
internal sealed class PlayerControls
{
public bool Forward { get; set; }
public bool Backward { get; set; }
public bool TurnLeft { get; set; }
public bool TurnRight { get; set; }
public bool Shoot { get; set; }
}
}

View file

@ -0,0 +1,10 @@
namespace TanksServer.Models;
internal sealed class PlayerControls
{
public bool Forward { get; set; }
public bool Backward { get; set; }
public bool TurnLeft { get; set; }
public bool TurnRight { get; set; }
public bool Shoot { get; set; }
}