Search Results for

    Show / Hide Table of Contents

    Class StoppingGeneratorEventArgs

    Contains all information before a player turns off a generator.

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

    Constructors

    | Improve this Doc View Source

    StoppingGeneratorEventArgs(Player, Scp079Generator, Boolean)

    Initializes a new instance of the StoppingGeneratorEventArgs class.

    Declaration
    public StoppingGeneratorEventArgs(Player player, Scp079Generator generator, bool isAllowed = true)
    Parameters
    Type Name Description
    Player player

    The player who's flipping the switch.

    MapGeneration.Distributors.Scp079Generator generator

    The MapGeneration.Distributors.Scp079Generator instance.

    System.Boolean isAllowed

    Indicates whether or not the switch of the generator can be flipped.

    Properties

    | Improve this Doc View Source

    Generator

    Gets the Generator instance.

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

    IsAllowed

    Gets or sets a value indicating whether or not the switch can be flipped.

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

    Player

    Gets the player who's filpping the switch of the generator.

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

    Implements

    IPlayerEvent
    IGeneratorEvent
    IDeniableEvent
    IExiledEvent

    Extension Methods

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