Struct PlayerWeaponSlot
Represents a weapon slot containing a weapon and its ammunition count.
public struct PlayerWeaponSlot : IEquatable<PlayerWeaponSlot>
- Implements
- Inherited Members
Constructors
PlayerWeaponSlot(Weapon, int)
Represents a weapon slot containing a weapon and its ammunition count.
public PlayerWeaponSlot(Weapon Weapon, int Ammo)
Parameters
WeaponWeaponThe weapon type assigned to this slot.
AmmointThe amount of ammunition for the weapon.
Properties
Ammo
The amount of ammunition for the weapon.
public int Ammo { readonly get; set; }
Property Value
Weapon
The weapon type assigned to this slot.
public Weapon Weapon { readonly get; set; }
Property Value
Methods
Deconstruct(out Weapon, out int)
public readonly void Deconstruct(out Weapon Weapon, out int Ammo)
Parameters
Equals(PlayerWeaponSlot)
public readonly bool Equals(PlayerWeaponSlot other)
Parameters
otherPlayerWeaponSlot
Returns
Equals(object)
public override readonly bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override readonly int GetHashCode()
Returns
ToString()
public override readonly string ToString()
Returns
Operators
operator ==(PlayerWeaponSlot, PlayerWeaponSlot)
public static bool operator ==(PlayerWeaponSlot left, PlayerWeaponSlot right)
Parameters
leftPlayerWeaponSlotrightPlayerWeaponSlot
Returns
operator !=(PlayerWeaponSlot, PlayerWeaponSlot)
public static bool operator !=(PlayerWeaponSlot left, PlayerWeaponSlot right)
Parameters
leftPlayerWeaponSlotrightPlayerWeaponSlot