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:
@ -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",
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user