Class ReceivingPreferenceEventArgs
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
Properties
CurrentAttachmentIdentifiers
Gets the old AttachmentIdentifier[].
public IEnumerable<AttachmentIdentifier> CurrentAttachmentIdentifiers { get; }
Property Value
CurrentCode
Gets the current attachments code.
public uint CurrentCode { get; }
Property Value
IsAllowed
Gets or sets a value indicating whether the attachments preference is allowed.
public bool IsAllowed { get; set; }
Property Value
Item
Gets the FirearmType which is being modified.
public FirearmType Item { get; }
Property Value
NewAttachmentIdentifiers
Gets or sets the new List<T> of AttachmentIdentifier.
public List<AttachmentIdentifier> NewAttachmentIdentifiers { get; set; }
Property Value
NewCode
Gets or sets the new attachments code.
public uint NewCode { get; set; }
Property Value
Player
Gets the Player who's changing attachments.
public Player Player { get; }