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, bool)
Initializes a new instance of the StoppingGeneratorEventArgs class.
public StoppingGeneratorEventArgs(Player player, Scp079Generator generator, bool isAllowed = true)
Parameters
player
PlayerThe player who's flipping the switch.
generator
Scp079GeneratorThe MapGeneration.Distributors.Scp079Generator instance.
isAllowed
boolIndicates whether the switch of the generator can be flipped.
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; }