Table of Contents

Class ReceivingPreferenceEventArgs

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

Contains all information before receiving a preference.

public class ReceivingPreferenceEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
Inheritance
ReceivingPreferenceEventArgs
Implements
Inherited Members
Extension Methods

Constructors

ReceivingPreferenceEventArgs(Player, ItemType, uint, uint, bool)

Initializes a new instance of the ReceivingPreferenceEventArgs class.

public ReceivingPreferenceEventArgs(Player player, ItemType itemType, uint currentCode, uint newCode, bool isAllowed = true)

Parameters

player Player
itemType ItemType

currentCode uint
newCode uint
isAllowed bool

Properties

CurrentAttachmentIdentifiers

Gets the old AttachmentIdentifier[].

public IEnumerable<AttachmentIdentifier> CurrentAttachmentIdentifiers { get; }

Property Value

IEnumerable<AttachmentIdentifier>

CurrentCode

Gets the current attachments code.

public uint CurrentCode { get; }

Property Value

uint

IsAllowed

Gets or sets a value indicating whether the attachments preference is allowed.

public bool IsAllowed { get; set; }

Property Value

bool

Item

Gets the FirearmType which is being modified.

public FirearmType Item { get; }

Property Value

FirearmType

NewAttachmentIdentifiers

Gets or sets the new List<T> of AttachmentIdentifier.

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

Property Value

List<AttachmentIdentifier>

NewCode

Gets or sets the new attachments code.

public uint NewCode { get; set; }

Property Value

uint

Player

Gets the Player who's changing attachments.

public Player Player { get; }

Property Value

Player