Class OpeningGeneratorEventArgs
Contains all information before a player opens a generator.
Inheritance
System.Object
OpeningGeneratorEventArgs
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 OpeningGeneratorEventArgs : IPlayerEvent, IDeniableEvent, IGeneratorEvent, IExiledEvent
Constructors
| Improve this Doc View SourceOpeningGeneratorEventArgs(Player, Scp079Generator, Boolean)
Initializes a new instance of the OpeningGeneratorEventArgs class.
Declaration
public OpeningGeneratorEventArgs(Player player, Scp079Generator generator, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
MapGeneration.Distributors.Scp079Generator | generator | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceGenerator
Gets the generator that is opening.
Declaration
public Generator Generator { get; }
Property Value
Type | Description |
---|---|
Generator |
IsAllowed
Gets or sets a value indicating whether or not the generator can be opened.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Player
Gets the player who's opening the generator.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |