Search Results for

    Show / Hide Table of Contents

    Class ChangingAttachmentsEventArgs

    Contains all information before changing item attachments.

    Inheritance
    System.Object
    ChangingAttachmentsEventArgs
    Implements
    IPlayerEvent
    IDeniableEvent
    IFirearmEvent
    IItemEvent
    IExiledEvent
    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 Source

    ChangingAttachmentsEventArgs(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 Source

    CurrentAttachmentIdentifiers

    Gets the old AttachmentIdentifier.

    Declaration
    public IEnumerable<AttachmentIdentifier> CurrentAttachmentIdentifiers { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<AttachmentIdentifier>
    | Improve this Doc View Source

    CurrentCode

    Gets the CurrentAttachmentIdentifiers code.

    Declaration
    public uint CurrentCode { get; }
    Property Value
    Type Description
    System.UInt32
    | Improve this Doc View Source

    Firearm

    Gets the Firearm which is being modified.

    Declaration
    public Firearm Firearm { get; }
    Property Value
    Type Description
    Firearm
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Item

    Declaration
    public Item Item { get; }
    Property Value
    Type Description
    Item
    | Improve this Doc View Source

    NewAttachmentIdentifiers

    Gets or sets the new AttachmentIdentifier.

    Declaration
    public List<AttachmentIdentifier> NewAttachmentIdentifiers { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<AttachmentIdentifier>
    | Improve this Doc View Source

    NewCode

    Gets the NewAttachmentIdentifiers code.

    Declaration
    public uint NewCode { get; }
    Property Value
    Type Description
    System.UInt32
    | Improve this Doc View Source

    Player

    Gets the Player who's changing attachments.

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

    Implements

    IPlayerEvent
    IDeniableEvent
    IFirearmEvent
    IItemEvent
    IExiledEvent

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX