Search Results for

    Show / Hide Table of Contents

    Class TogglingWeaponFlashlightEventArgs

    Contains all information before a player toggles the weapon's flashlight.

    Inheritance
    System.Object
    TogglingWeaponFlashlightEventArgs
    Implements
    IPlayerEvent
    IFirearmEvent
    IItemEvent
    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.Player
    Assembly: Exiled.Events.dll
    Syntax
    public class TogglingWeaponFlashlightEventArgs : IPlayerEvent, IFirearmEvent, IItemEvent, IDeniableEvent, IExiledEvent

    Constructors

    | Improve this Doc View Source

    TogglingWeaponFlashlightEventArgs(Player, Firearm, Boolean, Boolean)

    Initializes a new instance of the TogglingWeaponFlashlightEventArgs class.

    Declaration
    public TogglingWeaponFlashlightEventArgs(Player player, Firearm firearm, bool newState, bool isAllowed = true)
    Parameters
    Type Name Description
    Player player
    Firearm firearm
    System.Boolean newState
    System.Boolean isAllowed

    Properties

    | Improve this Doc View Source

    Firearm

    Gets the Firearm being held.

    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 weapon's flashlight can be toggled.

    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

    NewState

    Gets or sets a value indicating whether the new weapon's flashlight state will be enabled.

    Declaration
    public bool NewState { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Player

    Gets the player who's toggling the weapon's flashlight.

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

    Implements

    IPlayerEvent
    IFirearmEvent
    IItemEvent
    IDeniableEvent
    IExiledEvent

    Extension Methods

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