Class ChangingAttachmentsEventArgs
Contains all information before changing item attachments.
Inheritance
System.Object
ChangingAttachmentsEventArgs
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 ChangingAttachmentsEventArgs : IPlayerEvent, IDeniableEvent, IFirearmEvent, IItemEvent, IExiledEvent
Constructors
| Improve this Doc View SourceChangingAttachmentsEventArgs(Player, Firearm, UInt32, Boolean)
Initializes a new instance of the ChangingAttachmentsEventArgs class.
Declaration
public ChangingAttachmentsEventArgs(Player player, Firearm firearm, uint code, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
Firearm | firearm | |
System.UInt32 | code | The attachments code. |
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 CurrentAttachmentIdentifiers code.
Declaration
public uint CurrentCode { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Firearm
Gets the Firearm which is being modified.
Declaration
public Firearm Firearm { get; }
Property Value
Type | Description |
---|---|
Firearm |
IsAllowed
Gets or sets a value indicating whether or not the attachments can be changed.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item
Declaration
public Item Item { get; }
Property Value
Type | Description |
---|---|
Item |
NewAttachmentIdentifiers
Gets or sets the new AttachmentIdentifier.
Declaration
public List<AttachmentIdentifier> NewAttachmentIdentifiers { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<AttachmentIdentifier> |
NewCode
Gets the NewAttachmentIdentifiers code.
Declaration
public uint NewCode { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Player
Gets the Player who's changing attachments.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |