1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

properly pass game name to game string config finder.

add weapon prefix to weapon name parser for (iw5).
add some iw3 game strings
This commit is contained in:
RaidMax
2021-03-23 16:01:48 -05:00
parent c6db9a8493
commit 4179e8b428
6 changed files with 74 additions and 14 deletions

View File

@ -20,6 +20,12 @@ namespace IW4MAdmin.Plugins.Stats.Config
public WeaponNameParserConfiguration[] WeaponNameParserConfigurations { get; set; } = new[]
{
new WeaponNameParserConfiguration()
{
Game = Server.Game.IW3,
WeaponSuffix = "mp",
Delimiters = new[] {'_'}
},
new WeaponNameParserConfiguration()
{
Game = Server.Game.IW4,
@ -27,6 +33,13 @@ namespace IW4MAdmin.Plugins.Stats.Config
Delimiters = new[] {'_'}
},
new WeaponNameParserConfiguration()
{
Game = Server.Game.IW5,
WeaponSuffix = "mp",
WeaponPrefix = "iw5",
Delimiters = new[] {'_'}
},
new WeaponNameParserConfiguration()
{
Game = Server.Game.T6,
WeaponSuffix = "mp",

View File

@ -7,5 +7,6 @@ namespace Stats.Config
public Server.Game Game { get; set; }
public char[] Delimiters { get; set; }
public string WeaponSuffix { get; set; }
public string WeaponPrefix { get; set; }
}
}