update stats plugin to IPluginV2

This commit is contained in:
RaidMax
2023-02-11 21:01:28 -06:00
parent 7b8f6421aa
commit 66c0561e7f
19 changed files with 1388 additions and 1326 deletions

View File

@ -1,11 +1,11 @@
using System.Threading.Tasks;
using SharedLibraryCore;
using SharedLibraryCore.Events;
namespace IW4MAdmin.Plugins.Stats.Client.Abstractions
{
public interface IClientStatisticCalculator
{
Task GatherDependencies();
Task CalculateForEvent(GameEvent gameEvent);
Task CalculateForEvent(CoreEvent coreEvent);
}
}
}

View File

@ -1,11 +1,11 @@
using IW4MAdmin.Plugins.Stats.Client.Game;
using SharedLibraryCore;
using Data.Models;
using IW4MAdmin.Plugins.Stats.Client.Game;
using SharedLibraryCore.Interfaces;
namespace Stats.Client.Abstractions
{
public interface IHitInfoBuilder
{
HitInfo Build(string[] log, ParserRegex parserRegex, int entityId, bool isSelf, bool isVictim, Server.Game gameName);
HitInfo Build(string[] log, ParserRegex parserRegex, int entityId, bool isSelf, bool isVictim, Reference.Game gameName);
}
}
}

View File

@ -1,10 +1,9 @@
using SharedLibraryCore;
using Data.Models;
using Stats.Client.Game;
namespace Stats.Client.Abstractions
namespace Stats.Client.Abstractions;
public interface IWeaponNameParser
{
public interface IWeaponNameParser
{
WeaponInfo Parse(string weaponName, Server.Game gameName);
}
WeaponInfo Parse(string weaponName, Reference.Game gameName);
}