BF2Statistics.Python.Bf2Constants.GetWeaponName C# (CSharp) Method

GetWeaponName() public static method

Returns the weapon title based on the given weapon id
public static GetWeaponName ( int Id ) : string
Id int
return string
        public static string GetWeaponName(int Id)
        {
            if (Id >= Weapons.Length)
                return "Unknown";

            return Weapons[Id];
        }