Class PlayerWeaponExtensions
Provides extension methods for the PlayerWeapon enum.
public static class PlayerWeaponExtensions
- Inheritance
-
PlayerWeaponExtensions
- Inherited Members
Methods
GetName(PlayerWeapon)
Gets the name of the specified PlayerWeapon.
public static string GetName(this PlayerWeapon weapon)
Parameters
weaponPlayerWeaponThe weapon to get the name for.
Returns
- string
The name of the weapon, or "Invalid" if the weapon is not valid.