1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 23:31:13 -05:00

update stats plugin to IPluginV2

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

View File

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using Data.Models;
using IW4MAdmin.Plugins.Stats.Config;
using SharedLibraryCore;
using SharedLibraryCore.Interfaces;
@ -21,26 +22,26 @@ namespace Stats.Config
public WeaponNameParserConfiguration[] WeaponNameParserConfigurations { get; set; } = {
new()
{
Game = Server.Game.IW3,
Game = Reference.Game.IW3,
WeaponSuffix = "mp",
Delimiters = new[] {'_'}
},
new()
{
Game = Server.Game.IW4,
Game = Reference.Game.IW4,
WeaponSuffix = "mp",
Delimiters = new[] {'_'}
},
new()
{
Game = Server.Game.IW5,
Game = Reference.Game.IW5,
WeaponSuffix = "mp",
WeaponPrefix = "iw5",
Delimiters = new[] {'_'}
},
new()
{
Game = Server.Game.T6,
Game = Reference.Game.T6,
WeaponSuffix = "mp",
Delimiters = new[] {'_', '+'}
}

View File

@ -1,12 +1,12 @@
using SharedLibraryCore;
using Data.Models;
namespace Stats.Config
{
public class WeaponNameParserConfiguration
{
public Server.Game Game { get; set; }
public Reference.Game Game { get; set; }
public char[] Delimiters { get; set; }
public string WeaponSuffix { get; set; }
public string WeaponPrefix { get; set; }
}
}
}