Table of Contents

Struct PlayerWeaponSlot

Namespace
SampSharp.Entities.SAMP
Assembly
SampSharp.OpenMp.Entities.dll

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

Weapon Weapon

The weapon type assigned to this slot.

Ammo int

The amount of ammunition for the weapon.

Properties

Ammo

The amount of ammunition for the weapon.

public int Ammo { readonly get; set; }

Property Value

int

Weapon

The weapon type assigned to this slot.

public Weapon Weapon { readonly get; set; }

Property Value

Weapon

Methods

Deconstruct(out Weapon, out int)

public readonly void Deconstruct(out Weapon Weapon, out int Ammo)

Parameters

Weapon Weapon
Ammo int

Equals(PlayerWeaponSlot)

public readonly bool Equals(PlayerWeaponSlot other)

Parameters

other PlayerWeaponSlot

Returns

bool

Equals(object)

public override readonly bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override readonly int GetHashCode()

Returns

int

ToString()

public override readonly string ToString()

Returns

string

Operators

operator ==(PlayerWeaponSlot, PlayerWeaponSlot)

public static bool operator ==(PlayerWeaponSlot left, PlayerWeaponSlot right)

Parameters

left PlayerWeaponSlot
right PlayerWeaponSlot

Returns

bool

operator !=(PlayerWeaponSlot, PlayerWeaponSlot)

public static bool operator !=(PlayerWeaponSlot left, PlayerWeaponSlot right)

Parameters

left PlayerWeaponSlot
right PlayerWeaponSlot

Returns

bool