BF2Statistics.BF2Server.GetGametypeString C# (CSharp) Method

GetGametypeString() public static method

public static GetGametypeString ( string gametype ) : string
gametype string
return string
        public static string GetGametypeString(string gametype)
        {
            switch (gametype.ToLowerInvariant().Replace("gpm_", ""))
            {
                case "coop": return "Coop";
                case "cq": return "Conquest";
                case "sp1": return "SinglePlayer 16";
                case "sp2": return "SinglePlayer 32";
                case "sp3": return "SinglePlayer 64";
                default: return gametype;
            }
        }