Table of Contents

Class StoppingGeneratorEventArgs

Namespace
Exiled.Events.EventArgs.Player
Assembly
Exiled.Events.dll

Contains all information before a player turns off a generator.

public class StoppingGeneratorEventArgs : IPlayerEvent, IGeneratorEvent, IDeniableEvent, IExiledEvent
Inheritance
StoppingGeneratorEventArgs
Implements
Inherited Members
Extension Methods

Constructors

StoppingGeneratorEventArgs(Player, Scp079Generator, bool)

Initializes a new instance of the StoppingGeneratorEventArgs class.

public StoppingGeneratorEventArgs(Player player, Scp079Generator generator, bool isAllowed = true)

Parameters

player Player

The player who's flipping the switch.

generator Scp079Generator

The MapGeneration.Distributors.Scp079Generator instance.

isAllowed bool

Indicates whether the switch of the generator can be flipped.

Properties

Generator

Gets the Generator instance.

public Generator Generator { get; }

Property Value

Generator

IsAllowed

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

public bool IsAllowed { get; set; }

Property Value

bool

Player

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

public Player Player { get; }

Property Value

Player