Class ClosingGeneratorEventArgs
Contains all information before a player closes a generator.
public class ClosingGeneratorEventArgs : IPlayerEvent, IDeniableEvent, IGeneratorEvent, IExiledEvent
- Inheritance
-
ClosingGeneratorEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
ClosingGeneratorEventArgs(Player, Scp079Generator, bool)
Initializes a new instance of the ClosingGeneratorEventArgs class.
public ClosingGeneratorEventArgs(Player player, Scp079Generator generator, bool isAllowed = true)
Parameters
player
PlayerThe player who's closing the generator.
generator
Scp079GeneratorThe MapGeneration.Distributors.Scp079Generator instance.
isAllowed
boolIndicates whether the generator can be closed.
Properties
Generator
Gets the generator that is being closed.
public Generator Generator { get; }
Property Value
IsAllowed
Gets or sets a value indicating whether the generator door can be closed.
public bool IsAllowed { get; set; }
Property Value
Player
Gets the player who's closing the generator door.
public Player Player { get; }