session win/loss

This commit is contained in:
HeshamTB 2018-12-25 14:22:57 +03:00
parent a2d7f8f888
commit 74fc40f0d5

View File

@ -174,6 +174,7 @@ namespace OWTrack
class Session
{
public int wins, losses;
public int TotalMatches;
public int SkillChange;
public int StartSR;
@ -206,6 +207,10 @@ namespace OWTrack
match.LastMatchSR = this.Matches.Last().newSR;
this.Matches.Add(match);
this.TotalMatches = Matches.Count();
if (match.IsWin)
wins++;
else
losses++;
}
}
@ -213,6 +218,7 @@ namespace OWTrack
{
public Match() { }
public DateTime dateTime { get; set; }
public bool IsWin;//to be used.
public string DateTimeSting;
public int StartSR;
public int LastMatchSR;