Search Results for

    Show / Hide Table of Contents

    Class TogglingFlashlightEventArgs

    Contains all information before a player toggles a flashlight.

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

    Constructors

    | Improve this Doc View Source

    TogglingFlashlightEventArgs(ReferenceHub, ToggleableLightItemBase, Boolean)

    Initializes a new instance of the TogglingFlashlightEventArgs class.

    Declaration
    public TogglingFlashlightEventArgs(ReferenceHub hub, ToggleableLightItemBase flashlight, bool newState)
    Parameters
    Type Name Description
    ReferenceHub hub
    ToggleableLightItemBase flashlight
    System.Boolean newState

    Properties

    | Improve this Doc View Source

    Flashlight

    Gets the Flashlight being toggled.

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

    IsAllowed

    Gets or sets a value indicating whether or not the player can toggle the flashlight.

    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 or not the flashlight should be on.

    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 flashlight.

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

    Implements

    IPlayerEvent
    IDeniableEvent
    IItemEvent
    IExiledEvent

    Extension Methods

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