4006c09045
hopefully fixed thread lock? started work on elo rating
22 lines
789 B
C#
22 lines
789 B
C#
using IW4MAdmin.Plugins.Stats.Cheat;
|
|
using IW4MAdmin.Plugins.Stats.Models;
|
|
using System.Collections.Concurrent;
|
|
|
|
namespace IW4MAdmin.Plugins.Stats.Helpers
|
|
{
|
|
class ServerStats {
|
|
public ConcurrentDictionary<int, EFClientStatistics> PlayerStats { get; set; }
|
|
public ConcurrentDictionary<int, Detection> PlayerDetections { get; set; }
|
|
public EFServerStatistics ServerStatistics { get; private set; }
|
|
public EFServer Server { get; private set; }
|
|
|
|
public ServerStats(EFServer sv, EFServerStatistics st)
|
|
{
|
|
PlayerStats = new ConcurrentDictionary<int, EFClientStatistics>();
|
|
PlayerDetections = new ConcurrentDictionary<int, Detection>();
|
|
ServerStatistics = st;
|
|
Server = sv;
|
|
}
|
|
}
|
|
}
|