Table of Contents

Class ChangingAttachmentsEventArgs

Namespace
Exiled.Events.EventArgs.Item
Assembly
Exiled.Events.dll

Contains all information before changing item attachments.

public class ChangingAttachmentsEventArgs : IDeniableEvent, IFirearmEvent, IItemEvent, IPlayerEvent, IExiledEvent
Inheritance
ChangingAttachmentsEventArgs
Implements
Inherited Members
Extension Methods

Constructors

ChangingAttachmentsEventArgs(AttachmentsChangeRequest)

Initializes a new instance of the ChangingAttachmentsEventArgs class.

public ChangingAttachmentsEventArgs(AttachmentsChangeRequest request)

Parameters

request AttachmentsChangeRequest

The request received from client.

Properties

CurrentAttachmentIdentifiers

Gets the old AttachmentIdentifier.

public IEnumerable<AttachmentIdentifier> CurrentAttachmentIdentifiers { get; }

Property Value

IEnumerable<AttachmentIdentifier>

CurrentCode

public uint CurrentCode { get; }

Property Value

uint

Firearm

Gets the Firearm which is being modified.

public Firearm Firearm { get; }

Property Value

Firearm

IsAllowed

Gets or sets a value indicating whether the attachments can be changed.

public bool IsAllowed { get; set; }

Property Value

bool

Item

Gets the Item triggering the event.

public Item Item { get; }

Property Value

Item

NewAttachmentIdentifiers

Gets or sets the new AttachmentIdentifier.

public List<AttachmentIdentifier> NewAttachmentIdentifiers { get; set; }

Property Value

List<AttachmentIdentifier>

NewCode

Gets the NewAttachmentIdentifiers code.

public uint NewCode { get; }

Property Value

uint

Player

Gets the Player who's changing attachments.

public Player Player { get; }

Property Value

Player