Class StoppingGeneratorEventArgs
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)
Initializes a new instance of the StoppingGeneratorEventArgs class.
public StoppingGeneratorEventArgs(Player player, Scp079Generator generator)
Parameters
playerPlayerThe player who's flipping the switch.
generatorScp079GeneratorThe MapGeneration.Distributors.Scp079Generator instance.
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 of the generator.
public Player Player { get; }