Class ClosingGeneratorEventArgs
Contains all information before a player closes a generator.
Inheritance
System.Object
ClosingGeneratorEventArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.EventArgs.Player
Assembly: Exiled.Events.dll
Syntax
public class ClosingGeneratorEventArgs : IPlayerEvent, IDeniableEvent, IGeneratorEvent, IExiledEvent
Constructors
| Improve this Doc View SourceClosingGeneratorEventArgs(Player, Scp079Generator, Boolean)
Initializes a new instance of the ClosingGeneratorEventArgs class.
Declaration
public ClosingGeneratorEventArgs(Player player, Scp079Generator generator, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
Player | player | The player who's closing the generator. |
MapGeneration.Distributors.Scp079Generator | generator | The MapGeneration.Distributors.Scp079Generator instance. |
System.Boolean | isAllowed | Indicates whether or not the generator can be closed. |
Properties
| Improve this Doc View SourceGenerator
Gets the generator that is being closed.
Declaration
public Generator Generator { get; }
Property Value
Type | Description |
---|---|
Generator |
IsAllowed
Gets or sets a value indicating whether or not the generator door can be closed.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Player
Gets the player who's closing the generator door.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |