Show / Hide Table of Contents

Class Weapon

Inheritance
object
Weapon
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SlipeServer.Server.Elements.Structs
Assembly: SlipeServer.Server.dll
Syntax
public class Weapon

Constructors

| Edit this page View Source

Weapon(WeaponId, ushort, ushort?)

Declaration
public Weapon(WeaponId weaponId, ushort ammo, ushort? ammoInClip = null)
Parameters
Type Name Description
WeaponId weaponId
ushort ammo
ushort? ammoInClip

Properties

| Edit this page View Source

Ammo

Declaration
public ushort Ammo { get; set; }
Property Value
Type Description
ushort
| Edit this page View Source

AmmoInClip

Declaration
public ushort AmmoInClip { get; set; }
Property Value
Type Description
ushort
| Edit this page View Source

Slot

Declaration
public WeaponSlot Slot { get; }
Property Value
Type Description
WeaponSlot
| Edit this page View Source

Type

Declaration
public WeaponId Type { get; }
Property Value
Type Description
WeaponId

Methods

| Edit this page View Source

UpdateAmmoCountWithoutTriggerEvent(ushort, ushort?)

Declaration
public void UpdateAmmoCountWithoutTriggerEvent(ushort ammo, ushort? ammoInClip)
Parameters
Type Name Description
ushort ammo
ushort? ammoInClip

Events

| Edit this page View Source

AmmoInClipUpdated

Declaration
public event EventHandler<AmmoUpdateEventArgs>? AmmoInClipUpdated
Event Type
Type Description
EventHandler<AmmoUpdateEventArgs>
| Edit this page View Source

AmmoUpdated

Declaration
public event EventHandler<AmmoUpdateEventArgs>? AmmoUpdated
Event Type
Type Description
EventHandler<AmmoUpdateEventArgs>

Operators

| Edit this page View Source

implicit operator PedWeapon(Weapon)

Declaration
public static implicit operator PedWeapon(Weapon weapon)
Parameters
Type Name Description
Weapon weapon
Returns
Type Description
PedWeapon
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX