Table of Contents

Class ActivatingGeneratorEventArgs

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

Contains all information before a player filps the switch to a generator.

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

Constructors

ActivatingGeneratorEventArgs(Player, Scp079Generator, bool)

Initializes a new instance of the ActivatingGeneratorEventArgs class.

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

Parameters

player Player
generator Scp079Generator
isAllowed bool

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 to the generator.

public Player Player { get; }

Property Value

Player