Search Results for

    Show / Hide Table of Contents

    Class ReceivingPreferenceEventArgs

    Contains all information before receiving a preference.

    Inheritance
    System.Object
    ReceivingPreferenceEventArgs
    Implements
    IPlayerEvent
    IDeniableEvent
    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 ReceivingPreferenceEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent

    Constructors

    | Improve this Doc View Source

    ReceivingPreferenceEventArgs(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 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 current attachments code.

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

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

    Item

    Gets the FirearmType which is being modified.

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

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

    NewCode

    Gets or sets the new attachments code.

    Declaration
    public uint NewCode { get; set; }
    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
    IExiledEvent

    Extension Methods

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