move backend to subfolder
This commit is contained in:
parent
d4d1f2f981
commit
8d09663eff
1 changed files with 97 additions and 87 deletions
|
|
@ -1,22 +0,0 @@
|
|||
namespace TanksServer.Models;
|
||||
|
||||
internal sealed record class Scores(int Kills = 0, int Deaths = 0)
|
||||
{
|
||||
public int Kills { get; set; } = Kills;
|
||||
|
||||
public int Deaths { get; set; } = Deaths;
|
||||
|
||||
public double Ratio
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Kills == 0)
|
||||
return 0;
|
||||
if (Deaths == 0)
|
||||
return Kills;
|
||||
return Kills / (double)Deaths;
|
||||
}
|
||||
}
|
||||
|
||||
public int WallsDestroyed { get; set; }
|
||||
}
|
||||
Reference in a new issue