huge commit for advanced stats feature.
broke data out into its own library. may be breaking changes with existing plugins
This commit is contained in:
@ -0,0 +1,11 @@
|
||||
using System.Threading.Tasks;
|
||||
using SharedLibraryCore;
|
||||
|
||||
namespace IW4MAdmin.Plugins.Stats.Client.Abstractions
|
||||
{
|
||||
public interface IClientStatisticCalculator
|
||||
{
|
||||
Task GatherDependencies();
|
||||
Task CalculateForEvent(GameEvent gameEvent);
|
||||
}
|
||||
}
|
10
Plugins/Stats/Client/Abstractions/IHitInfoBuilder.cs
Normal file
10
Plugins/Stats/Client/Abstractions/IHitInfoBuilder.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using IW4MAdmin.Plugins.Stats.Client.Game;
|
||||
using SharedLibraryCore;
|
||||
|
||||
namespace Stats.Client.Abstractions
|
||||
{
|
||||
public interface IHitInfoBuilder
|
||||
{
|
||||
HitInfo Build(string[] log, int entityId, bool isSelf, bool isVictim, Server.Game gameName);
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Stats.Client.Abstractions
|
||||
{
|
||||
public interface IServerDistributionCalculator
|
||||
{
|
||||
Task Initialize();
|
||||
Task<double> GetZScoreForServer(long serverId, double value);
|
||||
Task<double?> GetRatingForZScore(double? value);
|
||||
}
|
||||
}
|
10
Plugins/Stats/Client/Abstractions/IWeaponNameParser.cs
Normal file
10
Plugins/Stats/Client/Abstractions/IWeaponNameParser.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using SharedLibraryCore;
|
||||
using Stats.Client.Game;
|
||||
|
||||
namespace Stats.Client.Abstractions
|
||||
{
|
||||
public interface IWeaponNameParser
|
||||
{
|
||||
WeaponInfo Parse(string weaponName, Server.Game gameName);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user