This repository has been archived on 2026-07-13. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
servicepoint-tanks/tanks-backend/TanksServer/Models/Scores.cs
2024-04-21 23:00:44 +02:00

22 lines
428 B
C#

namespace TanksServer.Models;
internal sealed record class Scores
{
public int Kills { get; set; }
public int Deaths { get; set; }
public double Ratio
{
get
{
if (Kills == 0)
return 0;
if (Deaths == 0)
return Kills;
return Math.Round(Kills / (double)Deaths, 3);
}
}
public int WallsDestroyed { get; set; }
}