Class ActivatingGeneratorEventArgs
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
Properties
Generator
Gets the Generator instance.
public Generator Generator { get; }
Property Value
IsAllowed
Gets or sets a value indicating whether the switch can be flipped.
public bool IsAllowed { get; set; }
Property Value
Player
Gets the player who's filpping the switch to the generator.
public Player Player { get; }