mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
moved heartbeat to timer instead of manual task/thread
GameEventHandler uses ConcurrentQueue for events exception handlers for events and log reading added IW4ScriptCommands plugin fixed stats lots of little fixes
This commit is contained in:
@ -56,7 +56,34 @@ namespace IW4MAdmin.Plugins.Stats.Models
|
||||
public int LastScore { get; set; }
|
||||
[NotMapped]
|
||||
public DateTime LastActive { get; set; }
|
||||
public void StartNewSession()
|
||||
{
|
||||
KillStreak = 0;
|
||||
DeathStreak = 0;
|
||||
LastScore = 0;
|
||||
SessionScores.Add(0);
|
||||
}
|
||||
[NotMapped]
|
||||
public int SessionScore { get; set; }
|
||||
public int SessionScore
|
||||
{
|
||||
set
|
||||
{
|
||||
SessionScores[SessionScores.Count - 1] = value;
|
||||
}
|
||||
get
|
||||
{
|
||||
return SessionScores.Sum();
|
||||
}
|
||||
}
|
||||
[NotMapped]
|
||||
public int RoundScore
|
||||
{
|
||||
get
|
||||
{
|
||||
return SessionScores[SessionScores.Count - 1];
|
||||
}
|
||||
}
|
||||
[NotMapped]
|
||||
private List<int> SessionScores = new List<int>() { 0 };
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user