native aot in container
This commit is contained in:
parent
0ca6a91a7e
commit
85ae3e302c
11 changed files with 128 additions and 61 deletions
|
@ -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; }
|
||||
}
|
||||
}
|
10
TanksServer/Models/PlayerControls.cs
Normal file
10
TanksServer/Models/PlayerControls.cs
Normal 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; }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue