tanks can spawn and get rendered
This commit is contained in:
parent
151cad4cee
commit
a3bd582b2e
1 changed files with 283 additions and 105 deletions
19
TanksServer/Models/Player.cs
Normal file
19
TanksServer/Models/Player.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
namespace TanksServer.Models;
|
||||
|
||||
internal sealed class Player(string name)
|
||||
{
|
||||
public string Name => name;
|
||||
|
||||
public Guid Id { get; } = Guid.NewGuid();
|
||||
|
||||
public PlayerControls Controls { get; } = new();
|
||||
}
|
||||
|
||||
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; }
|
||||
}
|
||||
Reference in a new issue