BF2Statistics.Web.Bf2Stats.PlayerController.GetWeaponTblPrefix C# (CSharp) Method

GetWeaponTblPrefix() private static method

Since secondary weapons (such as knife and c4) use column prefix's in the database, we use this method to return it based on weapons ID
private static GetWeaponTblPrefix ( int WeaponId ) : string
WeaponId int
return string
        private static string GetWeaponTblPrefix(int WeaponId)
        {
            switch (WeaponId)
            {
                case 9:
                    return "knife";
                case 10:
                    return "c4";
                case 11:
                    return "claymore";
                case 12:
                    return "handgrenade";
                case 13:
                    return "shockpad";
                case 14:
                    return "atmine";
                default:
                    return "";
            }
        }