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:
RaidMax
2021-03-22 11:09:25 -05:00
parent db2e1deb2f
commit c5375b661b
505 changed files with 13671 additions and 3271 deletions

View File

@ -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);
}
}

View 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);
}
}

View File

@ -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);
}
}

View 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);
}
}