Class ReceivingPreferenceEventArgs
Contains all information before receiving a preference.
Inheritance
System.Object
ReceivingPreferenceEventArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.EventArgs.Item
Assembly: Exiled.Events.dll
Syntax
public class ReceivingPreferenceEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceReceivingPreferenceEventArgs(Player, ItemType, UInt32, UInt32, Boolean)
Initializes a new instance of the ReceivingPreferenceEventArgs class.
Declaration
public ReceivingPreferenceEventArgs(Player player, ItemType itemType, uint currentCode, uint newCode, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
ItemType | itemType | |
System.UInt32 | currentCode | |
System.UInt32 | newCode | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceCurrentAttachmentIdentifiers
Gets the old AttachmentIdentifier[].
Declaration
public IEnumerable<AttachmentIdentifier> CurrentAttachmentIdentifiers { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<AttachmentIdentifier> |
CurrentCode
Gets the current attachments code.
Declaration
public uint CurrentCode { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
IsAllowed
Gets or sets a value indicating whether or not the attachments preference is allowed.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item
Gets the FirearmType which is being modified.
Declaration
public FirearmType Item { get; }
Property Value
Type | Description |
---|---|
FirearmType |
NewAttachmentIdentifiers
Gets or sets the new System.Collections.Generic.List<T> of AttachmentIdentifier.
Declaration
public List<AttachmentIdentifier> NewAttachmentIdentifiers { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<AttachmentIdentifier> |
NewCode
Gets or sets the new attachments code.
Declaration
public uint NewCode { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Player
Gets the Player who's changing attachments.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |