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

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 267b045883
commit 434392a7e4
505 changed files with 13671 additions and 3271 deletions

View File

@ -0,0 +1,24 @@
using System.Collections.Generic;
using Humanizer;
namespace SharedLibraryCore.Configuration
{
public class GameStringConfiguration : Dictionary<Server.Game, Dictionary<string, string>>
{
public string GetStringForGame(string key, Server.Game game = Server.Game.IW4)
{
if (key == null)
{
return null;
}
if (!ContainsKey(game))
{
return key.Transform(To.TitleCase);
}
var strings = this[game];
return !strings.ContainsKey(key) ? key.Transform(To.TitleCase) : strings[key];
}
}
}